Orchard Core: one-minute ASP. NET Core CMS, orchardcore
Orchard Core is the ASP. NET Core version of Orchard CMS.
Orchard Core is a new generation of ASP. NET Core CMS.
Official documents: http://orchardcore.readthedocs.io/en/latest/
GitHub: https://github.com/OrchardCMS/OrchardCore
The following is a quick start to build a CMS
Create a project
Open VS2017 to create a CMSWeb ASP. NET Core Web application
Then select an empty Template
Install the OrchardCore package
NuGet package command
Install-Package OrchardCore.Application.Cms.Targets
Or search for OrchardCore. Application. Cms. Targets in NuGet.
Project development
Open Startup. cs and add in ConfigureServices
services.AddOrchardCms();
Delete
app.Run(async (context) =>{ await context.Response.WriteAsync("Hello World!");});
Join
app.UseModules();
The final result is as follows:
public class Startup { // This method gets called by the runtime. Use this method to add services to the container. // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940 public void ConfigureServices(IServiceCollection services) { services.AddOrchardCms(); } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseModules(); } }
Then run the program. Open the browser and you will see the initialization installation interface. Enter the corresponding information and complete the installation.
Note that the password must contain uppercase and lowercase numbers and characters before it can be successfully submitted. Red is not acceptable.
After the installation, configure it as follows:
The background is/Admin. You can go to view related settings.
Orchard Core Framework: ASP. NET Core modular, multi-tenant Framework.