From e7edce9fd825982157205b1752e785445be12c95 Mon Sep 17 00:00:00 2001 From: Lex Li Date: Wed, 13 Nov 2024 13:58:36 -0500 Subject: [PATCH] Removed .NET 6. --- .github/workflows/dotnetcore.yml | 8 ++++---- SharpSnmpLib/SharpSnmpLib.csproj | 9 ++++----- Tests/CSharpCore/Tests.NetStandard.csproj | 6 ++---- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index c5ef2551..40adf6fc 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -13,8 +13,8 @@ jobs: uses: actions/setup-dotnet@v4 with: dotnet-version: | - 6.0.x 8.0.x + 9.0.x - name: Build shell: bash run: | @@ -36,8 +36,8 @@ jobs: uses: actions/setup-dotnet@v4 with: dotnet-version: | - 6.0.x 8.0.x + 9.0.x - name: Build shell: bash run: | @@ -60,8 +60,8 @@ jobs: uses: actions/setup-dotnet@v4 with: dotnet-version: | - 6.0.x 8.0.x + 9.0.x - name: Build shell: cmd run: build.release.bat @@ -70,7 +70,7 @@ jobs: run: | dotnet test Tests/CSharpCore/Tests.NetStandard.csproj --configuration Release --no-build /p:AltCover=true /p:AltCoverStrongNameKey=../../SharpSnmpLib/sharpsnmplib.snk /p:AltCoverAssemblyFilter='^(xunit)|(AltCover)|(SharpSnmpLib\.Tests)' dotnet tool install --global dotnet-reportgenerator-globaltool - reportgenerator -reports:${{ github.workspace }}\Tests\CSharpCore\coverage.net6.0.xml -targetdir:${{ github.workspace }}\TestResults -reporttypes:lcov + reportgenerator -reports:${{ github.workspace }}\Tests\CSharpCore\coverage.net8.0.xml -targetdir:${{ github.workspace }}\TestResults -reporttypes:lcov - name: Publish coverage report to coveralls.io uses: coverallsapp/github-action@v2 with: diff --git a/SharpSnmpLib/SharpSnmpLib.csproj b/SharpSnmpLib/SharpSnmpLib.csproj index 439f066a..28788162 100644 --- a/SharpSnmpLib/SharpSnmpLib.csproj +++ b/SharpSnmpLib/SharpSnmpLib.csproj @@ -6,10 +6,9 @@ false $([System.Text.RegularExpressions.Regex]::Replace($(NETCoreSdkVersion), '-.*', '')) - true - - net6.0;net471 - net471 + true + + net8.0;net471 Lextm.SharpSnmpLib #SNMP Library en-US @@ -40,7 +39,7 @@ true portable snupkg - net6.0 + net8.0 S5547;S907;S1133;S101;S1135 diff --git a/Tests/CSharpCore/Tests.NetStandard.csproj b/Tests/CSharpCore/Tests.NetStandard.csproj index 642be5c3..c1b0a5c7 100644 --- a/Tests/CSharpCore/Tests.NetStandard.csproj +++ b/Tests/CSharpCore/Tests.NetStandard.csproj @@ -11,12 +11,10 @@ Exe $([System.Text.RegularExpressions.Regex]::Replace($(NETCoreSdkVersion), '-.*', '')) - true true true - - net6.0 - $(TargetFrameworks);net8.0 + + net8.0 $(TargetFrameworks);net9.0 $(TargetFrameworks);net471