Move to net8.0 (#1463)
* Added net8.0 to the dotnet-version array used by actions * Changed framework version in Directory.Build.props * Removed unsed nuget * Update codeql-analysis.yml * Added net8.0 target framework * Updated code analyzer version to match net8.0 * Added net8.0 to tests * Updated sdk version * Updated version.json * Fixed build for non windows machines * Updated references in Directory.Build.targets * Added conditional exception handling to WatchServerDisconnect test case * Added missing project to solution
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<IsPackable>false</IsPackable>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
<RootNamespace>k8s.E2E</RootNamespace>
|
||||
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
|
||||
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
|
||||
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<IsPackable>false</IsPackable>
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
<PropertyGroup>
|
||||
<IsPackable>false</IsPackable>
|
||||
<RootNamespace>k8s.Tests</RootNamespace>
|
||||
<TargetFramework Condition="'$(OS)' != 'Windows_NT'">net6.0</TargetFramework>
|
||||
<TargetFrameworks Condition="'$(OS)' == 'Windows_NT'">net6.0;net48</TargetFrameworks>
|
||||
<TargetFrameworks Condition="'$(OS)' != 'Windows_NT'">net6.0;net7.0;net8.0</TargetFrameworks>
|
||||
<TargetFrameworks Condition="'$(OS)' == 'Windows_NT'">net6.0;net7.0;net8.0;net48</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<PropertyGroup>
|
||||
<IsPackable>false</IsPackable>
|
||||
<RootNamespace>k8s.Tests</RootNamespace>
|
||||
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
|
||||
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -409,7 +409,12 @@ namespace k8s.Tests
|
||||
await Task.WhenAny(waitForClosed.WaitAsync(), Task.Delay(TestTimeout)).ConfigureAwait(false);
|
||||
Assert.True(waitForClosed.IsSet);
|
||||
Assert.False(watcher.Watching);
|
||||
|
||||
#if NET8_0_OR_GREATER
|
||||
Assert.IsType<HttpIOException>(exceptionCatched);
|
||||
#else
|
||||
Assert.IsType<IOException>(exceptionCatched);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user