项目文件框架更改

This commit is contained in:
falcon 2023-03-10 10:05:06 +08:00
parent 404e1085a7
commit 12beee8577
2 changed files with 8 additions and 2 deletions

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net6</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Description>WebService相关方法</Description>

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net5;net6</TargetFrameworks>
<TargetFrameworks>net5;net6;net7</TargetFrameworks>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<Description>Falcon.SugarApi基础定义</Description>
@ -34,6 +34,12 @@
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="6.0.4" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net7' ">
<PackageReference Include="Microsoft.Extensions.Logging" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="6.0.4" />
</ItemGroup>
<!--<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="call $(SolutionDir)\Script\PushNuget.bat" />
</Target>-->