Orchard Core目前的版本是1.0.0-beta3
https://github.com/OrchardCMS/OrchardCore
OrchardCore需要.net core框架支持,所以你需要安装它,目前的版本是V2.2
https://dotnet.microsoft.com/download
-
新建一个空的Asp.net Core Web应用程序
-
通过NuGet管理包工具安装OrchardCore.Application.Cms.Targets
Install-Package OrchardCore.Application.Cms.Targets -Version 1.0.0-rc1-10004
- 打开startup.cs注入服务
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.Run(async (context) =>
//{
// await context.Response.WriteAsync("Hello World!");
//});
app.UseOrchardCore();
}
-
F5编译,网站已经跑起来了。
-
本地化支持
网站经过简单的设置已经运行起来了,但是英文的-_-!!!
https://crowdin.com/project/orchard-core下载本地化文件
在你的项目/App_Data文件夹下,新建Localization文件夹,将下载的本地化文件*.po复制到这里。