refactor: Client 项目升级到 NET5.0

This commit is contained in:
Argo-Cloud 2020-11-18 12:26:38 +08:00
parent f608d88c9d
commit 829bbcd588
3 changed files with 7 additions and 24 deletions

View File

@ -5,12 +5,12 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Bootstrap.Security.DataAccess" Version="3.1.1" />
<PackageReference Include="Bootstrap.Security.Mvc" Version="3.1.2" />
<PackageReference Include="Longbow" Version="3.1.0" />
<PackageReference Include="Longbow.Cache" Version="3.1.4" />
<PackageReference Include="Longbow.Data" Version="3.1.0" />
<PackageReference Include="Longbow.Web" Version="3.1.1" />
<PackageReference Include="Bootstrap.Security.DataAccess" Version="5.0.0" />
<PackageReference Include="Bootstrap.Security.Mvc" Version="5.0.0" />
<PackageReference Include="Longbow" Version="5.0.0" />
<PackageReference Include="Longbow.Cache" Version="5.0.0" />
<PackageReference Include="Longbow.Data" Version="5.0.0" />
<PackageReference Include="Longbow.Web" Version="5.0.0" />
<PackageReference Include="System.Data.SqlClient" Version="4.8.2" />
</ItemGroup>

View File

@ -6,7 +6,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Longbow.Logging" Version="3.1.1" />
<PackageReference Include="Longbow.Logging" Version="5.0.0" />
<PackageReference Include="Microsoft.Data.Sqlite" Version="5.0.0" />
</ItemGroup>

View File

@ -1,17 +0,0 @@
using Microsoft.AspNetCore;
namespace Microsoft.Extensions.Configuration
{
/// <summary>
/// IConfiguration 扩展类
/// </summary>
public static class ConfigurationExtensions
{
/// <summary>
/// 获得 配置文件中 BootstrapAdminAuthenticationOptions 实例
/// </summary>
/// <param name="configuration"></param>
/// <returns></returns>
public static BootstrapAdminAuthenticationOptions GetBootstrapAdminAuthenticationOptions(this IConfiguration configuration) => configuration.GetSection<BootstrapAdminAuthenticationOptions>().Get<BootstrapAdminAuthenticationOptions>();
}
}