mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-09-10 09:15:47 +00:00
Add .NET 10 target
This commit is contained in:
@@ -726,6 +726,9 @@ dotnet_diagnostic.CA1848.severity = silent
|
||||
# By default, this diagnostic is only reported for private members.
|
||||
dotnet_code_quality.CA1859.api_surface = private,internal
|
||||
|
||||
# CA1873: Evaluation of this argument may be expensive and unnecessary if logging is disabled
|
||||
dotnet_diagnostic.CA1873.severity = suggestion
|
||||
|
||||
# CA2208: Instantiate argument exceptions correctly
|
||||
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca2208
|
||||
#
|
||||
|
||||
@@ -18,33 +18,33 @@ jobs:
|
||||
uses: actions/setup-dotnet@v4
|
||||
|
||||
- name: Build Unit Tests .NET
|
||||
run: dotnet build -f net9.0 test/Renci.SshNet.Tests/
|
||||
run: dotnet build -f net10.0 test/Renci.SshNet.Tests/
|
||||
|
||||
- name: Build IntegrationTests .NET
|
||||
run: dotnet build -f net9.0 test/Renci.SshNet.IntegrationTests/
|
||||
run: dotnet build -f net10.0 test/Renci.SshNet.IntegrationTests/
|
||||
|
||||
- name: Run Unit Tests .NET
|
||||
run: |
|
||||
dotnet test \
|
||||
-f net9.0 \
|
||||
-f net10.0 \
|
||||
--no-build \
|
||||
--logger "console;verbosity=normal" \
|
||||
--logger GitHubActions \
|
||||
-p:CollectCoverage=true \
|
||||
-p:CoverletOutputFormat=cobertura \
|
||||
-p:CoverletOutput=../../coverlet/linux_unit_test_net_9_coverage.xml \
|
||||
-p:CoverletOutput=../../coverlet/linux_unit_test_net_10_coverage.xml \
|
||||
test/Renci.SshNet.Tests/
|
||||
|
||||
- name: Run Integration Tests .NET
|
||||
run: |
|
||||
dotnet test \
|
||||
-f net9.0 \
|
||||
-f net10.0 \
|
||||
--no-build \
|
||||
--logger "console;verbosity=normal" \
|
||||
--logger GitHubActions \
|
||||
-p:CollectCoverage=true \
|
||||
-p:CoverletOutputFormat=cobertura \
|
||||
-p:CoverletOutput=../../coverlet/linux_integration_test_net_9_coverage.xml \
|
||||
-p:CoverletOutput=../../coverlet/linux_integration_test_net_10_coverage.xml \
|
||||
test/Renci.SshNet.IntegrationTests/
|
||||
|
||||
- name: Archive Coverlet Results
|
||||
@@ -82,13 +82,13 @@ jobs:
|
||||
- name: Run Unit Tests .NET
|
||||
run: |
|
||||
dotnet test `
|
||||
-f net9.0 `
|
||||
-f net10.0 `
|
||||
--no-build `
|
||||
--logger "console;verbosity=normal" `
|
||||
--logger GitHubActions `
|
||||
-p:CollectCoverage=true `
|
||||
-p:CoverletOutputFormat=cobertura `
|
||||
-p:CoverletOutput=../../coverlet/windows_unit_test_net_9_coverage.xml `
|
||||
-p:CoverletOutput=../../coverlet/windows_unit_test_net_10_coverage.xml `
|
||||
test/Renci.SshNet.Tests/
|
||||
|
||||
- name: Run Unit Tests .NET Framework
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<PackageVersion Include="Meziantou.Analyzer" Version="2.0.220" />
|
||||
<!-- Should stay on LTS .NET releases. -->
|
||||
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.3" />
|
||||
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="9.0.9" />
|
||||
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="10.0.0-rc.1.25451.107" />
|
||||
<PackageVersion Include="MSTest" Version="3.9.3" />
|
||||
<PackageVersion Include="Moq" Version="4.20.72" />
|
||||
<PackageVersion Include="Nerdbank.GitVersioning" Version="3.7.115" />
|
||||
|
||||
+2
-1
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"sdk": {
|
||||
"version": "9.0.300",
|
||||
"version": "10.0.100-rc.1.25451.107",
|
||||
"allowPrerelease": true,
|
||||
"rollForward": "latestFeature"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<AssemblyName>Renci.SshNet</AssemblyName>
|
||||
<Product>SSH.NET</Product>
|
||||
<AssemblyTitle>SSH.NET</AssemblyTitle>
|
||||
<TargetFrameworks>net462;netstandard2.0;net8.0;net9.0</TargetFrameworks>
|
||||
<TargetFrameworks>net462;netstandard2.0;net8.0;net9.0;net10.0</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<PublishAot>true</PublishAot>
|
||||
<SelfContained>true</SelfContained>
|
||||
<TrimmerSingleWarn>false</TrimmerSingleWarn>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net48;net8.0;net9.0</TargetFrameworks>
|
||||
<TargetFrameworks>net48;net8.0;net9.0;net10.0</TargetFrameworks>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<IsTestProject>true</IsTestProject>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net462;net8.0;net9.0</TargetFrameworks>
|
||||
<TargetFrameworks>net462;net8.0;net9.0;net10.0</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user