Skip to content

Commit 8030503

Browse files
committed
Add .NET 10 target
1 parent fc988bd commit 8030503

File tree

10 files changed

+21
-17
lines changed

10 files changed

+21
-17
lines changed

.editorconfig

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

729+
# CA1873: Evaluation of this argument may be expensive and unnecessary if logging is disabled
730+
dotnet_diagnostic.CA1873.severity = suggestion
731+
729732
# CA2208: Instantiate argument exceptions correctly
730733
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca2208
731734
#

.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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<PackageVersion Include="Meziantou.Analyzer" Version="2.0.205" />
1313
<!-- Should stay on LTS .NET releases. -->
1414
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.3" />
15-
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="9.0.7" />
15+
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="10.0.0-preview.6.25358.103" />
1616
<PackageVersion Include="MSTest" Version="3.9.3" />
1717
<PackageVersion Include="Moq" Version="4.20.72" />
1818
<PackageVersion Include="Nerdbank.GitVersioning" Version="3.7.115" />
@@ -23,4 +23,4 @@
2323
<PackageVersion Include="System.Formats.Asn1" Version="8.0.2" />
2424
<PackageVersion Include="Testcontainers" Version="4.6.0" />
2525
</ItemGroup>
26-
</Project>
26+
</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.6.25358.103",
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)