Orchard Core一分钟搭建ASP.NET Core CMS
Orchard Core 是Orchard CMS的ASP.NET Core版本。Orchard Core是全新一代的ASP.NET Core CMS。
官方文档介绍:http://orchardcore.readthedocs.io/en/latest/
GitHub: https://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 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();
}
}
然后运行程序,打开浏览会看到初始化安装界面。输入对应信息,然后完成安装。
注意密码必须包含大小写数字和字符才能成功提交。如上图中出现红色是不行的。
安装好后配置一下,最终如下:
后台为/Admin ,可以进入查看相关设置。
Orchard Core Framework:ASP.NET Core 模块化,多租户框架。
原文:http://www.cnblogs.com/linezero/p/OrchardCore.html
.NET社区新闻,深度好文,欢迎访问公众号文章汇总 http://www.csharpkit.com
Orchard Core一分钟搭建ASP.NET Core CMS相关推荐
- ASP.NET CORE系列【一】搭建ASP.NET CORE项目
原文:ASP.NET CORE系列[一]搭建ASP.NET CORE项目 为什么要使用 ASP.NET Core? NET Core 刚发布的时候根据介绍就有点心里痒痒,微软的尿性都懂的,新东西bug ...
- 在Linux(Ubuntu)下搭建ASP.NET Core环境并运行 继续跨平台
最新教程:http://www.cnblogs.com/linezero/p/aspnetcoreubuntu.html 无需安装mono,在Linux(Ubuntu)下搭建ASP.NET Core环 ...
- 让我们Core在一起:ASP.NET Core amp; .NET Core
Microsoft .NET 自 2002 年发行 v1.0 以来,已经过了近 14 个年头,在这 14 年里面,.NET 日渐成熟并成为 Microsoft 的重要开发平台之一,只要是在 Windo ...
- diskgeniusv4.4.0_.NET Core 3.0及ASP.NET Core 3.0前瞻
(给DotNet加星标,提升.Net技能) 转自:LineZerocnblogs.com/linezero/p/netcore3 前几天微软发布了< .NET Core 3.0 Preview ...
- ASP.NET Core macOS 环境配置 - ASP.NET Core 基础教程 - 简单教程,简单编程
ASP.NET Core macOS 环境配置 - ASP.NET Core 基础教程 - 简单教程,简单编程 原文:ASP.NET Core macOS 环境配置 - ASP.NET Core 基础 ...
- ASP.NET Core Razor 标签助手 - ASP.NET Core 基础教程 - 简单教程,简单编程
原文:ASP.NET Core Razor 标签助手 - ASP.NET Core 基础教程 - 简单教程,简单编程 ASP.NET Core Razor 标签助手 上一章节我们介绍了视图导入,学习了 ...
- ASP.NET Core 登录登出 - ASP.NET Core 基础教程 - 简单教程,简单编程
ASP.NET Core 登录登出 - ASP.NET Core 基础教程 - 简单教程,简单编程 原文:ASP.NET Core 登录登出 - ASP.NET Core 基础教程 - 简单教程,简单 ...
- ASP.NET Core Identity 迁移数据 - ASP.NET Core 基础教程 - 简单教程,简单编程
ASP.NET Core Identity 迁移数据 - ASP.NET Core 基础教程 - 简单教程,简单编程 原文:ASP.NET Core Identity 迁移数据 - ASP.NET C ...
- ASP.NET Core Windows 环境配置 - ASP.NET Core 基础教程 - 简单教程,简单编程
原文:ASP.NET Core Windows 环境配置 - ASP.NET Core 基础教程 - 简单教程,简单编程 ASP.NET Core Windows 环境配置 ASP.NET Core ...
最新文章
- 李昱:百度产品登录协议介绍
- springboot + shiro 验证码与记住登录
- 修改Hosts为何不生效,是DNS缓存?
- Codeforces 861 B Which floor? 思维
- linux工科软件,linux基础网络工具学习笔记
- Extjs prompt 显示密码框
- Saltstack 报错 python-crypto randomPool_DeprecationWarning:
- java 安全 认证和授权,Java安全之认证与授权
- linux看python包的路径_linux下 彻底修改python的包/模块导入路径
- Creating Options Pages
- 调用百度地图 API 移动地图时 maker 始终在地图中间 并根据maker 经纬度 返回地址...
- lenovo L480 进入bios_如何通过bios关闭pxe启动 - 操作系统
- webpack5配置dev-server在控制台打印信息
- PRD产品需求文档原型模版 Axure RP格式
- 计算机丢失d3dx935.dll,d3dx943.dll丢失的解决方法
- 台式计算机键盘快捷键怎么设置,电脑快捷键设置修改 电脑键盘快捷键怎么更改...
- Python 爬虫天天基金数据——基金清单
- 【TypeScript系列教程13】String 字符串对象的基本使用
- itune音乐排行榜:法国周榜TOP100(2022年7月16日)
- 两利好因素携手而至 美元指数或逼近年内高点?