Skip to content

Commit b9c6ce3

Browse files
committed
Add .NET 10 target
1 parent ed071a2 commit b9c6ce3

File tree

10 files changed

+23
-20
lines changed

10 files changed

+23
-20
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,9 @@ dotnet_diagnostic.CA1848.severity = suggestion
723723
# By default, this diagnostic is only reported for private members.
724724
dotnet_code_quality.CA1859.api_surface = private,internal
725725

726+
# CA1873: Evaluation of this argument may be expensive and unnecessary if logging is disabled
727+
dotnet_diagnostic.CA1873.severity = suggestion
728+
726729
# CA2208: Instantiate argument exceptions correctly
727730
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca2208
728731
#

.github/workflows/build.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,36 +17,36 @@ jobs:
1717
- name: Setup .NET
1818
uses: actions/setup-dotnet@v4
1919
with:
20-
dotnet-version: 9.0.x
20+
dotnet-version: 10.0.x
2121

2222
- name: Build Unit Tests .NET
23-
run: dotnet build -f net9.0 test/Renci.SshNet.Tests/
23+
run: dotnet build -f net10.0 test/Renci.SshNet.Tests/
2424

2525
- name: Build IntegrationTests .NET
26-
run: dotnet build -f net9.0 test/Renci.SshNet.IntegrationTests/
26+
run: dotnet build -f net10.0 test/Renci.SshNet.IntegrationTests/
2727

2828
- name: Run Unit Tests .NET
2929
run: |
3030
dotnet test \
31-
-f net9.0 \
31+
-f net10.0 \
3232
--no-build \
3333
--logger "console;verbosity=normal" \
3434
--logger GitHubActions \
3535
-p:CollectCoverage=true \
3636
-p:CoverletOutputFormat=cobertura \
37-
-p:CoverletOutput=../../coverlet/linux_unit_test_net_9_coverage.xml \
37+
-p:CoverletOutput=../../coverlet/linux_unit_test_net_10_coverage.xml \
3838
test/Renci.SshNet.Tests/
3939
4040
- name: Run Integration Tests .NET
4141
run: |
4242
dotnet test \
43-
-f net9.0 \
43+
-f net10.0 \
4444
--no-build \
4545
--logger "console;verbosity=normal" \
4646
--logger GitHubActions \
4747
-p:CollectCoverage=true \
4848
-p:CoverletOutputFormat=cobertura \
49-
-p:CoverletOutput=../../coverlet/linux_integration_test_net_9_coverage.xml \
49+
-p:CoverletOutput=../../coverlet/linux_integration_test_net_10_coverage.xml \
5050
test/Renci.SshNet.IntegrationTests/
5151
5252
- name: Archive Coverlet Results
@@ -66,7 +66,7 @@ jobs:
6666
- name: Setup .NET
6767
uses: actions/setup-dotnet@v4
6868
with:
69-
dotnet-version: 9.0.x
69+
dotnet-version: 10.0.x
7070

7171
- name: Build Solution
7272
run: dotnet build Renci.SshNet.sln
@@ -86,13 +86,13 @@ jobs:
8686
- name: Run Unit Tests .NET
8787
run: |
8888
dotnet test `
89-
-f net9.0 `
89+
-f net10.0 `
9090
--no-build `
9191
--logger "console;verbosity=normal" `
9292
--logger GitHubActions `
9393
-p:CollectCoverage=true `
9494
-p:CoverletOutputFormat=cobertura `
95-
-p:CoverletOutput=../../coverlet/windows_unit_test_net_9_coverage.xml `
95+
-p:CoverletOutput=../../coverlet/windows_unit_test_net_10_coverage.xml `
9696
test/Renci.SshNet.Tests/
9797
9898
- name: Run Unit Tests .NET Framework

Directory.Packages.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
<!-- No reason to require later than 6.0.0 at this time. -->
2121
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.0" />
22-
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="9.0.2" />
22+
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="10.0.0-preview.2.25163.2" />
2323
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
2424
<PackageVersion Include="MSTest.TestAdapter" Version="3.8.2" />
2525
<PackageVersion Include="MSTest.TestFramework" Version="3.8.2" />
@@ -30,7 +30,7 @@
3030
<PackageVersion Include="StyleCop.Analyzers" Version="1.2.0-beta.556" />
3131

3232
<!-- Should stay on LTS .NET releases. -->
33-
<PackageVersion Include="System.Formats.Asn1" Version="8.0.2" />
33+
<PackageVersion Include="System.Formats.Asn1" Version="10.0.0-preview.2.25163.2" />
3434
<PackageVersion Include="Testcontainers" Version="4.3.0" />
3535
</ItemGroup>
3636
</Project>

src/Renci.SshNet/Renci.SshNet.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<AssemblyName>Renci.SshNet</AssemblyName>
55
<Product>SSH.NET</Product>
66
<AssemblyTitle>SSH.NET</AssemblyTitle>
7-
<TargetFrameworks>net462;netstandard2.0;netstandard2.1;net8.0;net9.0</TargetFrameworks>
7+
<TargetFrameworks>net462;netstandard2.0;netstandard2.1;net8.0;net9.0;net10.0</TargetFrameworks>
88
</PropertyGroup>
99

1010
<PropertyGroup>

test/Renci.SshNet.AotCompatibilityTestApp/Renci.SshNet.AotCompatibilityTestApp.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>net9.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
<PublishAot>true</PublishAot>
77
<SelfContained>true</SelfContained>
88
<TrimmerSingleWarn>false</TrimmerSingleWarn>

test/Renci.SshNet.Benchmarks/Renci.SshNet.Benchmarks.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>net9.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
</PropertyGroup>

test/Renci.SshNet.IntegrationBenchmarks/Renci.SshNet.IntegrationBenchmarks.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>net9.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
</PropertyGroup>

test/Renci.SshNet.IntegrationTests/OldIntegrationTests/SshCommandTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,14 +457,14 @@ public void Test_MultipleThread_100_MultipleConnections()
457457
client.Connect();
458458
return client;
459459
},
460-
(int counter, ParallelLoopState pls, SshClient client) =>
460+
(counter, pls, client) =>
461461
{
462462
var result = ExecuteTestCommand(client);
463463
Debug.WriteLine(string.Format("TestMultipleThreadMultipleConnections #{0}", counter));
464464
Assert.IsTrue(result);
465465
return client;
466466
},
467-
(SshClient client) =>
467+
client =>
468468
{
469469
client.Disconnect();
470470
client.Dispose();

test/Renci.SshNet.IntegrationTests/Renci.SshNet.IntegrationTests.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-
<TargetFrameworks>net48;net8.0;net9.0</TargetFrameworks>
4+
<TargetFrameworks>net48;net8.0;net9.0;net10.0</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<IsTestProject>true</IsTestProject>
77
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>

test/Renci.SshNet.Tests/Renci.SshNet.Tests.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-
<TargetFrameworks>net462;net8.0;net9.0</TargetFrameworks>
4+
<TargetFrameworks>net462;net8.0;net9.0;net10.0</TargetFrameworks>
55
</PropertyGroup>
66

77
<ItemGroup>

0 commit comments

Comments
 (0)