Skip to content

Commit

Permalink
.Net Core 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Wayne-KTCSZ committed Dec 4, 2019
1 parent a727d79 commit 5bb1444
Show file tree
Hide file tree
Showing 23 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ZKEACMS Build With Asp.Net Core 3.0
# ZKEACMS Build With Asp.Net Core 3.1

ZKEACMS is a visual design, **WYSIWYG** Content Management System.

Expand Down
14 changes: 7 additions & 7 deletions src/EasyFrameWork/EasyFrameWork.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AssemblyName>EasyFrameWork</AssemblyName>
<PackageId>EasyFrameWork</PackageId>
<Copyright>深圳市纸壳软件科技有限公司 ZKEASOFT</Copyright>
Expand All @@ -18,13 +18,13 @@
<ItemGroup>
<PackageReference Include="DocumentFormat.OpenXml" Version="2.10.0-beta0002" />
<PackageReference Include="IdGen" Version="2.0.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="3.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="3.0.0" />
<PackageReference Include="System.ComponentModel.Annotations" Version="4.6.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="3.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.1.0" />
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="3.1.0" />
<PackageReference Include="System.ComponentModel.Annotations" Version="4.7.0" />
<PackageReference Include="System.Reflection.Extensions" Version="4.3.0" />
<PackageReference Include="System.Reflection.TypeExtensions" Version="4.6.0" />
<PackageReference Include="System.Reflection.TypeExtensions" Version="4.7.0" />
<PackageReference Include="System.Runtime.Loader" Version="4.3.0" />
<PackageReference Include="CacheManager.Core" Version="2.0.0-beta-1629" />
</ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/EasyFrameWork/Mvc/Plugin/Loader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ public class Loader : IPluginLoader
public const string PluginFolder = "Plugins";
private const string PluginInfoFile = "zkea.plugin";
#if DEBUG
private string[] AltDevelopmentPath = new[] { "bin", "Debug", "netcoreapp3.0" };
private string[] AltDevelopmentPath = new[] { "bin", "Debug", "netcoreapp3.1" };
#else
private string[] AltDevelopmentPath = new[] { "bin", "Release", "netcoreapp3.0" };
private string[] AltDevelopmentPath = new[] { "bin", "Release", "netcoreapp3.1" };
#endif
private static List<AssemblyLoader> Loaders = new List<AssemblyLoader>();
private static Dictionary<string, Assembly> LoadedAssemblies = new Dictionary<string, Assembly>();
Expand Down
2 changes: 1 addition & 1 deletion src/ZKEACMS.Article/ZKEACMS.Article.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<AssemblyName>ZKEACMS.Article</AssemblyName>
<PackageId>ZKEACMS.Article</PackageId>
Expand Down
2 changes: 1 addition & 1 deletion src/ZKEACMS.FormGenerator/ZKEACMS.FormGenerator.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<AssemblyName>ZKEACMS.FormGenerator</AssemblyName>
<PackageId>ZKEACMS.FormGenerator</PackageId>
Expand Down
2 changes: 1 addition & 1 deletion src/ZKEACMS.GlobalScripts/ZKEACMS.GlobalScripts.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<AssemblyName>ZKEACMS.GlobalScripts</AssemblyName>
<PackageId>ZKEACMS.GlobalScripts</PackageId>
Expand Down
2 changes: 1 addition & 1 deletion src/ZKEACMS.Message/ZKEACMS.Message.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<AssemblyName>ZKEACMS.Message</AssemblyName>
<PackageId>ZKEACMS.Message</PackageId>
Expand Down
2 changes: 1 addition & 1 deletion src/ZKEACMS.Product/ZKEACMS.Product.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<AssemblyName>ZKEACMS.Product</AssemblyName>
<PackageId>ZKEACMS.Product</PackageId>
Expand Down
2 changes: 1 addition & 1 deletion src/ZKEACMS.Redirection/ZKEACMS.Redirection.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<AssemblyName>ZKEACMS.Redirection</AssemblyName>
<PackageId>ZKEACMS.Redirection</PackageId>
Expand Down
2 changes: 1 addition & 1 deletion src/ZKEACMS.SectionWidget/ZKEACMS.SectionWidget.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<AssemblyName>ZKEACMS.SectionWidget</AssemblyName>
<PackageId>ZKEACMS.SectionWidget</PackageId>
Expand Down
2 changes: 1 addition & 1 deletion src/ZKEACMS.Shop/ZKEACMS.Shop.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<AssemblyName>ZKEACMS.Shop</AssemblyName>
<PackageId>ZKEACMS.Shop</PackageId>
Expand Down
2 changes: 1 addition & 1 deletion src/ZKEACMS.SiteSearch/ZKEACMS.SiteSearch.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<AssemblyName>ZKEACMS.SiteSearch</AssemblyName>
<PackageId>ZKEACMS.SiteSearch</PackageId>
Expand Down
2 changes: 1 addition & 1 deletion src/ZKEACMS.Sitemap/ZKEACMS.Sitemap.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<AssemblyName>ZKEACMS.Sitemap</AssemblyName>
<PackageId>ZKEACMS.Sitemap</PackageId>
Expand Down
2 changes: 1 addition & 1 deletion src/ZKEACMS.StyleEditor/ZKEACMS.StyleEditor.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<AssemblyName>ZKEACMS.StyleEditor</AssemblyName>
<PackageId>ZKEACMS.StyleEditor</PackageId>
Expand Down
4 changes: 2 additions & 2 deletions src/ZKEACMS.TemplateImporter/ZKEACMS.TemplateImporter.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<AssemblyName>ZKEACMS.TemplateImporter</AssemblyName>
<PackageId>ZKEACMS.TemplateImporter</PackageId>
Expand All @@ -15,7 +15,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="HtmlAgilityPack" Version="1.11.16" />
<PackageReference Include="HtmlAgilityPack" Version="1.11.17" />
<ProjectReference Include="..\ZKEACMS\ZKEACMS.csproj" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions src/ZKEACMS.Updater/CurrentDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Options;
using System;
using ZKEACMS.Options;

namespace ZKEACMS.Updater
Expand All @@ -29,8 +30,7 @@ protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
}
case Easy.DbTypes.MsSqlEarly:
{
optionsBuilder.UseSqlServer(_dataBaseOption.ConnectionString, option => option.UseRowNumberForPaging());
break;
throw new Exception("Starting with EF Core 3.0, EF will only generate SQL for paging that is only compatible with later SQL Server versions. Because SQL Server 2008 is no longer a supported product.");
}
case Easy.DbTypes.Sqlite:
{
Expand Down
2 changes: 1 addition & 1 deletion src/ZKEACMS.Updater/ZKEACMS.Updater.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<AssemblyName>ZKEACMS.Updater</AssemblyName>
<PackageId>ZKEACMS.Updater</PackageId>
Expand Down
4 changes: 2 additions & 2 deletions src/ZKEACMS.WebHost/ZKEACMS.WebHost.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AssemblyName>ZKEACMS.WebHost</AssemblyName>
<PackageId>ZKEACMS.WebHost</PackageId>
<Copyright>深圳市纸壳软件科技有限公司 纸壳CMS</Copyright>
Expand All @@ -22,7 +22,7 @@
<PreserveCompilationReferences>true</PreserveCompilationReferences>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="3.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="3.1.0" />
<ProjectReference Include="..\EasyFrameWork\EasyFrameWork.csproj" />
<ProjectReference Include="..\ZKEACMS\ZKEACMS.csproj" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/ZKEACMS/Setting/ApplicationSettingService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public override IQueryable<ApplicationSetting> Get()

public override ServiceResult<ApplicationSetting> Add(ApplicationSetting item)
{
if (Count(m => m.SettingKey == item.SettingKey) == 0)
if (base.Get(item.SettingKey) == null)
{
_settingCache.TryAdd(item.SettingKey, item);
return base.Add(item);
Expand Down
10 changes: 5 additions & 5 deletions src/ZKEACMS/ZKEACMS.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AssemblyName>ZKEACMS</AssemblyName>
<PackageId>ZKEACMS</PackageId>
<Version>3.2.1</Version>
Expand All @@ -24,11 +24,11 @@
<ProjectReference Include="..\EasyFrameWork\EasyFrameWork.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="3.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.1.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="3.1.0" />
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="3.0.0" />
<PackageReference Include="System.Drawing.Common" Version="4.6.0" />
<PackageReference Include="System.Drawing.Common" Version="4.7.0" />
<PackageReference Include="System.Xml.XPath.XmlDocument" Version="4.3.0" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion test/EasyFrameWork.Test/EasyFrameWork.Test.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion test/ZKEACMS.Test/ZKEACMS.Test.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion tools/PackWidgetTemplate/PackWidgetTemplate.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>

</Project>

0 comments on commit 5bb1444

Please sign in to comment.