add net7 remove net5 (#1085)

* add net7

* remove net5

* fix build

* fix versions

* revert to 10.0 due to ci

* fix automapper

* update ver matrix

* fix warning

* fix net7 test err

* more target to basic and model pkg
This commit is contained in:
Boshi Lian
2022-12-05 08:59:04 -08:00
committed by GitHub
parent a435aa44f4
commit 763f1f0778
19 changed files with 56 additions and 29 deletions

View File

@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFrameworks>netstandard2.0;net6.0;net7.0</TargetFrameworks>
<RootNamespace>k8s.Models</RootNamespace>
</PropertyGroup>
@@ -12,7 +12,8 @@
<ItemGroup>
<PackageReference Include="System.Text.Json" Version="6.0.6" />
<PackageReference Include="AutoMapper" Version="10.1.1" />
<PackageReference Include="AutoMapper" Version="12.0.0" Condition="'$(TargetFramework)' != 'netstandard2.0'" />
<PackageReference Include="AutoMapper" Version="10.1.1" Condition="'$(TargetFramework)' == 'netstandard2.0'" />
<PackageReference Include="Fractions" Version="7.2.0" />
<PackageReference Include="YamlDotNet" Version="12.1.0" />
</ItemGroup>