Skip to content

Commit 763f1f0

Browse files
authored
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
1 parent a435aa4 commit 763f1f0

File tree

19 files changed

+56
-29
lines changed

19 files changed

+56
-29
lines changed

.github/workflows/buildtest.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
with:
1717
dotnet-version: |
1818
3.1.x
19-
5.0.x
20-
6.0.x
19+
6.0.x
20+
7.0.x
2121
# - name: Check Format
2222
# # don't check formatting on Windows b/c of CRLF issues.
2323
# if: matrix.os == 'ubuntu-latest'
@@ -37,10 +37,10 @@ jobs:
3737
fetch-depth: 0
3838
- name: Add msbuild to PATH
3939
uses: microsoft/[email protected]
40-
- name: Setup dotnet SDK 6
40+
- name: Setup dotnet SDK 7
4141
uses: actions/setup-dotnet@v3
4242
with:
43-
dotnet-version: '6.0.x'
43+
dotnet-version: '7.0.x'
4444
- name: Restore nugets (msbuild)
4545
run: msbuild .\src\KubernetesClient.Models\ -t:restore -p:RestorePackagesConfig=true
4646
- name: Build (msbuild)
@@ -57,8 +57,8 @@ jobs:
5757
with:
5858
dotnet-version: |
5959
3.1.x
60-
5.0.x
61-
6.0.x
60+
6.0.x
61+
7.0.x
6262
- name: Minikube
6363
run: minikube start
6464
- name: Test

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
with:
3131
dotnet-version: |
3232
3.1.x
33-
5.0.x
34-
6.0.x
33+
6.0.x
34+
7.0.x
3535
3636
# Initializes the CodeQL tools for scanning.
3737
- name: Initialize CodeQL

.github/workflows/draft.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
with:
2020
dotnet-version: |
2121
3.1.x
22-
5.0.x
23-
6.0.x
22+
6.0.x
23+
7.0.x
2424
2525
- name: dotnet restore
2626
run: dotnet restore --verbosity minimal --configfile nuget.config

.github/workflows/nuget.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
with:
2020
dotnet-version: |
2121
3.1.x
22-
5.0.x
23-
6.0.x
22+
6.0.x
23+
7.0.x
2424
2525
- name: dotnet restore
2626
run: dotnet restore --verbosity minimal --configfile nuget.config

Directory.Build.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
22
<ItemGroup>
33
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118" PrivateAssets="all" />
4-
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="6.0.0" PrivateAssets="all" />
4+
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="7.0.0-preview1.22518.1" PrivateAssets="all" />
55
<PackageReference Include="Nerdbank.GitVersioning" Version="3.5.119" PrivateAssets="all" />
66
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
77
</ItemGroup>

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ ${GEN_DIR}/openapi/csharp.sh ${REPO_DIR}/src/KubernetesClient ${REPO_DIR}/csharp
149149

150150
| SDK Version | Kubernetes Version | .NET Targeting |
151151
|-------------|--------------------|------------------------------------------------------|
152+
| 9.1 | 1.25 | netstandard2.1;net6.0;net7.0;net48*;netstandard2.0* |
152153
| 9.0 | 1.25 | netstandard2.1;net5.0;net6.0;net48*;netstandard2.0* |
153154
| 8.0 | 1.24 | netstandard2.1;net5.0;net6.0;net48*;netstandard2.0* |
154155
| 7.2 | 1.23 | netstandard2.1;net5.0;net6.0;net48*;netstandard2.0* |

examples/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net7.0</TargetFramework>
55
</PropertyGroup>
66
</Project>

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
{
33
"sdk": {
4-
"version": "6.0.400",
4+
"version": "7.0.100",
55
"rollForward": "latestMajor"
66
},
77
"msbuild-sdks": {

src/KubernetesClient.Basic/KubernetesClient.Basic.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netstandard2.0</TargetFramework>
4+
<TargetFrameworks>netstandard2.0;net6.0;net7.0</TargetFrameworks>
55
<RootNamespace>k8s</RootNamespace>
66
</PropertyGroup>
77

src/KubernetesClient.Kubectl/KubernetesClient.Kubectl.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<RootNamespace>k8s.kubectl</RootNamespace>

0 commit comments

Comments
 (0)