Skip to content

Commit

Permalink
Consolidate package versions, and explicitly target net6.0 in samples
Browse files Browse the repository at this point in the history
  • Loading branch information
tintoy committed Dec 10, 2022
1 parent 66e42d5 commit 1f0bc12
Show file tree
Hide file tree
Showing 15 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dist: trusty
language: csharp
mono: none
dotnet: 2.1
dotnet: 6.0
git:
depth: 9999999
branches:
Expand Down
2 changes: 1 addition & 1 deletion samples/ConfigFromConfigMap/ConfigFromConfigMap.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>

<LangVersion>latest</LangVersion>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<LangVersion>latest</LangVersion>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion samples/ExtensionsSample/ExtensionsSample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion samples/WatchEvents/WatchEvents.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<LangVersion>latest</LangVersion>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion samples/noob-exec/NoobExec.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<AssemblyName>noob-exec</AssemblyName>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>

<LangVersion>latest</LangVersion>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="2.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.0.0" />
<PackageReference Include="Microsoft.Extensions.Options" Version="2.0.0" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="HTTPlease.Core" Version="$(PackageVersion_HTTPlease)" />
<PackageReference Include="HTTPlease.Core" Version="1.8.9" />
<PackageReference Include="BouncyCastle.NetCore" Version="1.8.1.3" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
<PackageReference Include="System.Reactive" Version="3.1.1" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>

<Description>WebSockets support for KubeClient</Description>
</PropertyGroup>
Expand All @@ -10,7 +10,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="HTTPlease.Core" Version="$(PackageVersion_HTTPlease)" />
<PackageReference Include="HTTPlease.Core" Version="1.8.9" />
<PackageReference Include="Nito.AsyncEx.Coordination" Version="5.0.0-pre-05" />
</ItemGroup>

Expand Down
6 changes: 3 additions & 3 deletions src/KubeClient/KubeClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="HTTPlease.Core" Version="$(PackageVersion_HTTPlease)" />
<PackageReference Include="HTTPlease.Diagnostics" Version="$(PackageVersion_HTTPlease)" />
<PackageReference Include="HTTPlease.Formatters.Json" Version="$(PackageVersion_HTTPlease)" />
<PackageReference Include="HTTPlease.Core" Version="1.8.9" />
<PackageReference Include="HTTPlease.Diagnostics" Version="1.8.9" />
<PackageReference Include="HTTPlease.Formatters.Json" Version="1.8.9" />
<PackageReference Include="Microsoft.AspNetCore.JsonPatch" Version="1.1.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
<PackageReference Include="System.Diagnostics.Process" Version="4.3.0" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<LangVersion>latest</LangVersion>

<IsPackable>false</IsPackable>
Expand All @@ -17,10 +17,10 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="HTTPlease.Core" Version="$(PackageVersion_HTTPlease)" />
<PackageReference Include="HTTPlease.Diagnostics" Version="$(PackageVersion_HTTPlease)" />
<PackageReference Include="HTTPlease.Formatters.Json" Version="$(PackageVersion_HTTPlease)" />
<PackageReference Include="HTTPlease.Testability.Xunit" Version="$(PackageVersion_HTTPlease)" />
<PackageReference Include="HTTPlease.Core" Version="1.8.9" />
<PackageReference Include="HTTPlease.Diagnostics" Version="1.8.9" />
<PackageReference Include="HTTPlease.Formatters.Json" Version="1.8.9" />
<PackageReference Include="HTTPlease.Testability.Xunit" Version="1.8.9" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.0.0" />
<PackageReference Include="System.Reactive" Version="3.1.1" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ protected async Task Disconnect(WebSocket clientSocket, WebSocket serverSocket,
Log.LogInformation("Closing client socket...");

await clientSocket.CloseAsync(closeStatus, closeStatusDescription, TestCancellation).ConfigureAwait(false);
Assert.Equal(WebSocketState.Aborted, clientSocket.State); // AF: Not sure whether or not this is a bug in CoreFX. See if it occurs when we directly use ClientWebSocket.
Assert.Equal(WebSocketState.Closed, clientSocket.State);

Log.LogInformation("Client socket closed (CloseStatus = '{CloseStatus}', CloseStatusDescription = '{CloseStatusDescription}').", clientSocket.CloseStatus, clientSocket.CloseStatusDescription);

Expand Down
10 changes: 5 additions & 5 deletions test/KubeClient.Tests/KubeClient.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<LangVersion>latest</LangVersion>

<IsPackable>false</IsPackable>
Expand All @@ -16,10 +16,10 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="HTTPlease.Core" Version="$(PackageVersion_HTTPlease)" />
<PackageReference Include="HTTPlease.Diagnostics" Version="$(PackageVersion_HTTPlease)" />
<PackageReference Include="HTTPlease.Formatters.Json" Version="$(PackageVersion_HTTPlease)" />
<PackageReference Include="HTTPlease.Testability.Xunit" Version="$(PackageVersion_HTTPlease)" />
<PackageReference Include="HTTPlease.Core" Version="1.8.9" />
<PackageReference Include="HTTPlease.Diagnostics" Version="1.8.9" />
<PackageReference Include="HTTPlease.Formatters.Json" Version="1.8.9" />
<PackageReference Include="HTTPlease.Testability.Xunit" Version="1.8.9" />
<PackageReference Include="System.Reactive" Version="3.1.1" />
</ItemGroup>

Expand Down

0 comments on commit 1f0bc12

Please sign in to comment.