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應(yīng)用程序
image.png

image.png
-
通過NuGet管理包工具安裝OrchardCore.Application.Cms.Targets
image.png
Install-Package OrchardCore.Application.Cms.Targets -Version 1.0.0-rc1-10004
- 打開startup.cs注入服務(wù)
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編譯,網(wǎng)站已經(jīng)跑起來了。
配置基礎(chǔ)信息 -
本地化支持
網(wǎng)站經(jīng)過簡單的設(shè)置已經(jīng)運行起來了,但是英文的-_-!!!
https://crowdin.com/project/orchard-core下載本地化文件
在你的項目/App_Data文件夾下,新建Localization文件夾,將下載的本地化文件*.po復(fù)制到這里。
image.png



