ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
.net core inizialization in DDD project
Title:
B
I
{code}
?
I have a ddd layered architecture project, with this structure: - Myprj.Core - Myprj.Core.Infrastructure - Myprj.Core.Models - Myprj.Data - Myprj.Framework * - Myprj.Services - Myprj.Web In all the examples on your site, the .net core application is developed on a single project, and therefore the installation of awesome mvc takes place as indicated on https://www.aspnetawesome.com/learn/mvc/Installation In my case, the `IServiceCollection` configuration does not take place in the startup.cs file of the main project, but entrusted to a library project (in my case MyPrj.Framework) here there is mvc service configuration like this: public static IMvcBuilder AddMyPrjMvc(this IServiceCollection services) { var mvcBuilder = services.AddMvc(o => ... } where I have to install this libraries ? if I install it in MyPrj.Framework, when I call `@Html.Awe().Init()` in _Layout.cshtml give me an error.
Save Changes
Cancel
mtugnoli
asked at 05 Mar 2018
Answers
B
I
{code}
?
You need to add the libraries in any project that you are going to call them, just like any other library, for example see how many of your projects are referencing the AspNetCore library
Save Changes
Cancel
Omu
answered at 07 Mar 2018
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK