refactor: Admin 项目升级到 net5.0
This commit is contained in:
parent
3f49c7fecd
commit
7150e86473
|
@ -1,7 +1,7 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<IsWebProject>true</IsWebProject>
|
||||
</PropertyGroup>
|
||||
|
||||
|
@ -11,9 +11,9 @@
|
|||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Longbow.Logging" Version="3.1.1" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="4.1.1" />
|
||||
<PackageReference Include="Sentry.AspNetCore" Version="2.1.0" />
|
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.1.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="4.2.0" />
|
||||
<PackageReference Include="Sentry.AspNetCore" Version="2.1.6" />
|
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.6.3" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Bootstrap.Security" Version="3.1.0" />
|
||||
<PackageReference Include="MongoDB.Driver" Version="2.10.2" />
|
||||
<PackageReference Include="MongoDB.Driver" Version="2.11.4" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -20,9 +20,9 @@
|
|||
<PackageReference Include="Longbow.TencentAuth" Version="3.1.1" />
|
||||
<PackageReference Include="Longbow.Web" Version="3.1.1" />
|
||||
<PackageReference Include="Longbow.WeChatAuth" Version="3.1.2" />
|
||||
<PackageReference Include="Microsoft.Data.Sqlite" Version="3.1.2" />
|
||||
<PackageReference Include="Microsoft.Data.Sqlite" Version="5.0.0" />
|
||||
<PackageReference Include="PetaPoco.Extensions" Version="3.1.0" />
|
||||
<PackageReference Include="System.Data.SqlClient" Version="4.8.1" />
|
||||
<PackageReference Include="System.Data.SqlClient" Version="4.8.2" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -244,7 +244,7 @@ namespace Bootstrap.DataAccess
|
|||
public bool UpdateSystemModel(bool isDemo)
|
||||
{
|
||||
var dict = DictHelper.RetrieveDicts().FirstOrDefault(d => d.Category == "网站设置" && d.Name == "演示系统" && d.Define == 0);
|
||||
dict.Code = isDemo ? "1" : "0";
|
||||
dict!.Code = isDemo ? "1" : "0";
|
||||
return Save(dict);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue