3

In my previous ASP developments, I used to separate my solution in multiple projects, each one having a specific roles:

  1. mySolution.Web with the views, controllers, JS, CSS
  2. mySolution.Data.DAL to define the detabase mapping and repositories
  3. mySolution.Data.Domain to define the entities and domains
  4. mySolution.Data.Services for services such as email...
  5. Tests...
  6. ....

What would be your suggestion considering the new ASP.Net 5 tree view:

From:

 src
       Web
          Controllers
          Migrations ???
          Models
          Services
          ViewModels
          Views

to

src
   Web
      Controllers
      Migrations ???  
      ViewModels
      Views
   Data.DAL
      Mapping
      Repositories
   Data.Domain
      Entities
      Models
   Services
      Services

Does it make sense? Is it still in the spirit of this new ASP.Net 5 or we should better stick with one dedicated project?

Concerning the other projects (not .Web), I have used Class library package instead of class library dll, is it more relevant for ASP.net 5 projects or the only benefit is to create a Nuget package instead of a .dll file?

Thanks

Sylvain

1 Answer 1

3

Depends on the size of your project. If the project is small I should go for the first one.

I don't think you should make use of class libary dll. Mixing dnx project with the old projects will give you more trouble with testing and deploying.

Important is that you create the following structure --src project1 project2 --test project1.test project2.test

A good source how projects can be setup is

Example projects

Microsoft use .shade files and korebuild for building, testing, packaging and deploying. You can used that but you can also setup your own.

There is almost no documentation about .shade file and korebuild.

1
  • Thanks @Thom for that, I am a bit abashed with this new architecture and wanted to get some feedback.
    – Sylvain C.
    Oct 29, 2015 at 21:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.