如何快速使用Orchard Core搭建高效的一分钟内完成的ASP.NET Core内容管理系统?

2026-03-30 13:341阅读0评论SEO资源
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计460个文字,预计阅读时间需要2分钟。

如何快速使用Orchard Core搭建高效的一分钟内完成的ASP.NET Core内容管理系统?

Orchard Core 是 Orchard CMS 的 ASP.NET Core 版本。它是一款全新的 ASP.NET Core CMS。官方文档介绍:http://orchardcore.readthedocs.io/en/latest/,GitHub:https://github.com/OrchardCMS/OrchardCore。下面快速开始搭建。

Orchard Core 是Orchard CMS的ASP.NET Core版本。

Orchard Core是全新一代的ASP.NET Core CMS。

如何快速使用Orchard Core搭建高效的一分钟内完成的ASP.NET Core内容管理系统?

官方文档介绍:orchardcore.readthedocs.io/en/latest/
GitHub: github.com/OrchardCMS/OrchardCore

下面快速开始搭建CMS

新建项目

打开VS2017 新建一个CMSWeb的ASP.NET Core Web应用程序

然后选择空模板

安装OrchardCore包

NuGet包命令 目前预览版需加 -Pre

Install-Package OrchardCore.Application.Cms.Targets-Pre

或者在NuGet搜索 OrchardCore.Application.Cms.Targets

项目开发

打开Startup.cs ,在ConfigureServices加入

services.AddOrchardCms();

然后删除Configure 中的

app.Run(async (context) => { await context.Response.WriteAsync("Hello World!"); });

加入

app.UseModules();

最终如下:

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 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(); } }

然后运行程序,打开浏览会看到初始化安装界面。输入对应信息,然后完成安装。


注意密码必须包含大小写数字和字符才能成功提交。如上图中出现红色是不行的。

安装好后配置一下,最终如下:

后台为/Admin ,可以进入查看相关设置。

Orchard Core Framework:ASP.NET Core 模块化,多租户框架。

时间:2019-09-23 23:05:16 阅读(5)

本文共计460个文字,预计阅读时间需要2分钟。

如何快速使用Orchard Core搭建高效的一分钟内完成的ASP.NET Core内容管理系统?

Orchard Core 是 Orchard CMS 的 ASP.NET Core 版本。它是一款全新的 ASP.NET Core CMS。官方文档介绍:http://orchardcore.readthedocs.io/en/latest/,GitHub:https://github.com/OrchardCMS/OrchardCore。下面快速开始搭建。

Orchard Core 是Orchard CMS的ASP.NET Core版本。

Orchard Core是全新一代的ASP.NET Core CMS。

如何快速使用Orchard Core搭建高效的一分钟内完成的ASP.NET Core内容管理系统?

官方文档介绍:orchardcore.readthedocs.io/en/latest/
GitHub: github.com/OrchardCMS/OrchardCore

下面快速开始搭建CMS

新建项目

打开VS2017 新建一个CMSWeb的ASP.NET Core Web应用程序

然后选择空模板

安装OrchardCore包

NuGet包命令 目前预览版需加 -Pre

Install-Package OrchardCore.Application.Cms.Targets-Pre

或者在NuGet搜索 OrchardCore.Application.Cms.Targets

项目开发

打开Startup.cs ,在ConfigureServices加入

services.AddOrchardCms();

然后删除Configure 中的

app.Run(async (context) => { await context.Response.WriteAsync("Hello World!"); });

加入

app.UseModules();

最终如下:

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 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(); } }

然后运行程序,打开浏览会看到初始化安装界面。输入对应信息,然后完成安装。


注意密码必须包含大小写数字和字符才能成功提交。如上图中出现红色是不行的。

安装好后配置一下,最终如下:

后台为/Admin ,可以进入查看相关设置。

Orchard Core Framework:ASP.NET Core 模块化,多租户框架。

时间:2019-09-23 23:05:16 阅读(5)