Original link: https://www.cnblogs.com/Qbit/p/andorid-netcore.html
Reprint please indicate the source
Introduced
The Orchard Core Modules Library provides a mechanism to have a standalone modular system that allows you to opt-in to a specific application framework without having to rely on your application design.
original [[The Library Orchard Core Modules provides a mechanism to having a self-contained modular system where you c The specific application framework and not has the design of your application is dictated to by such.
]]...
Quick Start
In Visual Studio, create a new Web application. Install OrchardCore.Application.Cms.Targets into your project by managing the project NuGet package. Next, in Startup.cs, modify the Configureservices method, adding the following line:
Services . Addorchardcms ();
Next, at the end of the Configure method, use this line: app. Useorchardcore (); Replace this block: app. Run (Async (context) =>{await context. Response.writeasync ("Hello world! ”);} );
Other frameworks you can easily add your favorite application framework to your pipeline. The following implementations are designed to work in parallel, so if you want to use ASP. NET MVC and Nancy in the pipeline, just add both.
The following modular framework wrapper is designed to work directly with the modular application framework, so avoid adding the original frame and expect it to work.
original [[the Modular framework wrappers below is designed to work directly with the modular application framework , so avoid just adding the raw framework and expect it to just work.] ... ASP. NET MVC
Installing OrchardCore.Application.Mvc.Targets into a project with the NuGet Package Manager
Next, in Startup.cs, modify the method configureservices to resemble the following:
ADD ASP. NET MVC and support for modules services. Addorchardcore () . Addmvc ();
Note
Note Add.AddMvc()
ASP. NET MVC is now part of your pipeline.
Here you can find the sample application: OrchardCore.Mvc.Web
Nancyfx
Installing OrchardCore.Application.Nancy.Targets into a project by managing the project NuGet package
Next, in Startup.cs, modify the method configureservices to resemble the following:
// ADD Nancy and support for modules Services . Addorchardcore () . Addnancy () ;
Note
Note Add.AddNancy()
Nancyfx is now part of your pipeline. This means that the Nancy module will be automatically discovered.
Here you can find a sample application: OrchardCore.Nancy.Web
Original link: https://www.cnblogs.com/Qbit/p/andorid-netcore.html
Reprint please indicate the source
Orchard core document Translation (iii) Orchard core Modules