原文鏈接:http://www.javashuo.com/article/p-ennntqlt-er.html html
轉載請註明出處web
Orchard Core Modules庫提供了一種機制,能夠擁有一個獨立的模塊化系統,您能夠選擇加入特定的應用程序框架,而沒必要依賴於您的應用程序設計。 app
services.AddOrchardCms();
下面的模塊化框架包裝器被設計爲直接與模塊化應用程序框架一塊兒工做,所以避免添加原始框架並指望它能夠工做。 框架
經過NuGet包管理器將OrchardCore.Application.Mvc.Targets 安裝到項目中async
// Add ASP.NET MVC and support for modules services.AddOrchardCore() .AddMvc();
Noteide
注意添加 .AddMvc()
模塊化
Asp.Net Mvc如今是您管道的一部分.spa
您能夠在此處找到示例應用程序: OrchardCore.Mvc.Web翻譯
經過管理項目NuGet包將OrchardCore.Application.Nancy.Targets安裝到項目中設計
接下來,在Startup.cs中,將方法ConfigureServices修改成以下所示:
// Add Nancy and support for modules services .AddOrchardCore() .AddNancy() ;
Note
注意添加 .AddNancy()
NancyFx 如今是您管道的一部分。這意味着Nancy模塊將被自動發現。
您能夠在這裏找到一個示例應用程序: OrchardCore.Nancy.Web
原文鏈接:http://www.javashuo.com/article/p-ennntqlt-er.html
轉載請註明出處