I want to separate my ASP. NET MVC 5 + WebApi2 solution into separate logical projects, so (in my head) I have:
- Data.csproj
- references EF6 and handles Code First migrations
- Models.csproj
- references Automapper
- refrences Data (above)
- Services.csproj
- references Models (above)
- Web.csproj
- references autofac
- references services above
But I can't get my real project to look like that because
- Identity sprinkles the model and EF references all over my Web.csproj
- When I configure Autofac in Web.csproj and try to register my DbContexts and whatever other dependencies are in my other projects, I will need access to the concrete types, so Web will need to reference all other projects as the DI is setup in Web?
This is a brand new project auto-generated by the ASP .NET template. Thanks.