Skip to content

Commit a366c4c

Browse files
committed
Add .NET 10 target
1 parent fd05d76 commit a366c4c

File tree

10 files changed

+22
-18
lines changed

10 files changed

+22
-18
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: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,33 +18,33 @@ jobs:
1818
uses: actions/setup-dotnet@v4
1919

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

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

2626
- name: Run Unit Tests .NET
2727
run: |
2828
dotnet test \
29-
-f net9.0 \
29+
-f net10.0 \
3030
--no-build \
3131
--logger "console;verbosity=normal" \
3232
--logger GitHubActions \
3333
-p:CollectCoverage=true \
3434
-p:CoverletOutputFormat=cobertura \
35-
-p:CoverletOutput=../../coverlet/linux_unit_test_net_9_coverage.xml \
35+
-p:CoverletOutput=../../coverlet/linux_unit_test_net_10_coverage.xml \
3636
test/Renci.SshNet.Tests/
3737
3838
- name: Run Integration Tests .NET
3939
run: |
4040
dotnet test \
41-
-f net9.0 \
41+
-f net10.0 \
4242
--no-build \
4343
--logger "console;verbosity=normal" \
4444
--logger GitHubActions \
4545
-p:CollectCoverage=true \
4646
-p:CoverletOutputFormat=cobertura \
47-
-p:CoverletOutput=../../coverlet/linux_integration_test_net_9_coverage.xml \
47+
-p:CoverletOutput=../../coverlet/linux_integration_test_net_10_coverage.xml \
4848
test/Renci.SshNet.IntegrationTests/
4949
5050
- name: Archive Coverlet Results
@@ -82,13 +82,13 @@ jobs:
8282
- name: Run Unit Tests .NET
8383
run: |
8484
dotnet test `
85-
-f net9.0 `
85+
-f net10.0 `
8686
--no-build `
8787
--logger "console;verbosity=normal" `
8888
--logger GitHubActions `
8989
-p:CollectCoverage=true `
9090
-p:CoverletOutputFormat=cobertura `
91-
-p:CoverletOutput=../../coverlet/windows_unit_test_net_9_coverage.xml `
91+
-p:CoverletOutput=../../coverlet/windows_unit_test_net_10_coverage.xml `
9292
test/Renci.SshNet.Tests/
9393
9494
- name: Run Unit Tests .NET Framework

Directory.Packages.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<PackageVersion Include="Meziantou.Analyzer" Version="2.0.201" />
1313

1414
<!-- Should stay on LTS .NET releases. -->
15-
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.3" />
16-
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="9.0.5" />
15+
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.0-preview.5.25277.114" />
16+
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="10.0.0-preview.5.25277.114" />
1717
<PackageVersion Include="MSTest" Version="3.9.1" />
1818
<PackageVersion Include="Moq" Version="4.20.72" />
1919
<PackageVersion Include="Nerdbank.GitVersioning" Version="3.7.115" />
@@ -22,7 +22,7 @@
2222
<PackageVersion Include="StyleCop.Analyzers" Version="1.2.0-beta.556" />
2323

2424
<!-- Should stay on LTS .NET releases. -->
25-
<PackageVersion Include="System.Formats.Asn1" Version="8.0.2" />
25+
<PackageVersion Include="System.Formats.Asn1" Version="10.0.0-preview.5.25277.114" />
2626
<PackageVersion Include="Testcontainers" Version="4.5.0" />
2727
</ItemGroup>
2828
</Project>

global.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"sdk": {
3-
"version": "9.0.300",
3+
"version": "10.0.100-preview.5.25277.114",
4+
"allowPrerelease": true,
45
"rollForward": "latestFeature"
56
}
67
}

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;net8.0;net9.0</TargetFrameworks>
7+
<TargetFrameworks>net462;netstandard2.0;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/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)