Skip to content

Commit 285c92d

Browse files
author
Christoph Bühler
committed
feat: upgrade to net5.0
1 parent 8a1f95a commit 285c92d

File tree

8 files changed

+12
-10
lines changed

8 files changed

+12
-10
lines changed

build/_build.csproj

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

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.0</TargetFramework>
5+
<TargetFramework>net5.0</TargetFramework>
66
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
77
<RootNamespace></RootNamespace>
88
<IsPackable>False</IsPackable>

config/CodeAnalysis.targets

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

33
<ItemGroup>
44
<PackageReference Include="Roslynator.Analyzers" Version="3.0.0" PrivateAssets="All"/>
5-
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.205" PrivateAssets="All"/>
5+
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.261" PrivateAssets="All"/>
66
<AdditionalFiles Include="$(MSBuildThisFileDirectory)/stylecop.json"/>
77
</ItemGroup>
88

config/Common.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<Project>
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net5.0</TargetFramework>
55
<Nullable>enable</Nullable>
6-
<LangVersion>8</LangVersion>
6+
<LangVersion>9</LangVersion>
77
<Authors>Christoph Bühler</Authors>
88
<Owner>cbuehler</Owner>
99
</PropertyGroup>

src/KubeOps/Operator/Client/ClientUrlFixer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ protected override async Task<HttpResponseMessage> SendAsync(
1212
HttpRequestMessage request,
1313
CancellationToken cancellationToken)
1414
{
15-
if (request.RequestUri.Segments.Count(s => s == "/") > 1)
15+
if (request.RequestUri?.Segments.Count(s => s == "/") > 1)
1616
{
1717
// This request uri contains "empty" segments. (i.e. https://.../apis//v1/...)
1818
// This means, this is a default api group (/api/v1)

src/KubeOps/Operator/Entities/Extensions/DeepCloneExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using k8s;
55
using k8s.Models;
66
using KubeOps.Operator.Comparing;
7+
using ReferenceEqualityComparer = KubeOps.Operator.Comparing.ReferenceEqualityComparer;
78

89
namespace KubeOps.Operator.Entities.Extensions
910
{

tests/KubeOps.Test/KubeOps.Test.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net5.0</TargetFramework>
55
<Nullable>enable</Nullable>
6-
<LangVersion>8</LangVersion>
6+
<LangVersion>9</LangVersion>
77
<IsPackable>false</IsPackable>
88
</PropertyGroup>
99

tests/KubeOps.TestOperator.Test/KubeOps.TestOperator.Test.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net5.0</TargetFramework>
55
<Nullable>enable</Nullable>
6-
<LangVersion>8</LangVersion>
6+
<LangVersion>9</LangVersion>
77
<IsPackable>false</IsPackable>
88
</PropertyGroup>
99

tests/KubeOps.TestOperator/KubeOps.TestOperator.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<TargetFramework>net5.0</TargetFramework>
6+
<LangVersion>9</LangVersion>
67
<GenerateDocumentationFile>true</GenerateDocumentationFile>
78
<NoWarn>CS1591</NoWarn>
89
</PropertyGroup>

0 commit comments

Comments
 (0)