From 94dfd81212427560df43ed5aa1c2e2eb70ea63b1 Mon Sep 17 00:00:00 2001 From: Gitii Date: Sun, 12 Jun 2022 14:50:46 +0200 Subject: [PATCH] Remove support for Net. 5 & .NET Core 3.1 (#10) --- .github/workflows/ci.yml | 2 -- .github/workflows/release.yml | 2 -- .../Community.Wsl.Sdk.Tests.csproj | 2 +- Community.Wsl.Sdk/Community.Wsl.Sdk.csproj | 4 ++-- README.md | 15 ++++++++++++--- generate-coverage.cmd | 2 +- generate-coverage.sh | 2 +- 7 files changed, 17 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f8faf4..fe2c381 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,8 +18,6 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: | - 3.1.x - 5.0.x 6.0.x - name: Decode the Pfx run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 30a7eaa..011555a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,8 +22,6 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: | - 3.1.x - 5.0.x 6.0.x include-prerelease: true - name: Decode the Pfx diff --git a/Community.Wsl.Sdk.Tests/Community.Wsl.Sdk.Tests.csproj b/Community.Wsl.Sdk.Tests/Community.Wsl.Sdk.Tests.csproj index 0a18518..bfd24ca 100644 --- a/Community.Wsl.Sdk.Tests/Community.Wsl.Sdk.Tests.csproj +++ b/Community.Wsl.Sdk.Tests/Community.Wsl.Sdk.Tests.csproj @@ -1,7 +1,7 @@ - net6.0 + net6.0-windows enable false True diff --git a/Community.Wsl.Sdk/Community.Wsl.Sdk.csproj b/Community.Wsl.Sdk/Community.Wsl.Sdk.csproj index c15d18b..e113d5a 100644 --- a/Community.Wsl.Sdk/Community.Wsl.Sdk.csproj +++ b/Community.Wsl.Sdk/Community.Wsl.Sdk.csproj @@ -1,9 +1,9 @@ - netstandard2.1;net5.0-windows;net6.0-windows + net6.0-windows windows - SDK for Windows Subsystem for Linux for .NET 5, 6 and Standard 2.1 + SDK for Windows Subsystem for Linux for .NET 6 (c) 2021 Gitii https://github.com/Gitii/community.wsl.sdk True diff --git a/README.md b/README.md index 34fa648..7b1112d 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,6 @@ features into existing Windows applications. You can enumerate, query, executing ## Supported frameworks -- .NET Standard 2.1 -- .Net 5 - .Net 6 ## Supported Operating Systems @@ -131,4 +129,15 @@ Breaking changes: * Changed namespace `Community.Wsl.Sdk.Strategies.Command` to `Community.Wsl.Sdk.Strategies.Commands` -Please use the managed api (`Managed{WslApi,Command}`). It has the same features and is easier to use. \ No newline at end of file +Please use the managed api (`Managed{WslApi,Command}`). It has the same features and is easier to use. + +# Migrate from v2 to v3 + +Breaking changes: + +* Support for Net. 5 has been removed. Net. 5 is [out of support since May 10, 2022](https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core). +* Support for .NET Core 3.1 has been removed. .NET Core 3.1 will be [out of support after December 13, 2022](https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core). + + +Please upgrade to a newer .NET and .NET Core runtime version. +The minimum supported Net. version is Net. 6. diff --git a/generate-coverage.cmd b/generate-coverage.cmd index 21ebeb4..1437d25 100644 --- a/generate-coverage.cmd +++ b/generate-coverage.cmd @@ -1,2 +1,2 @@ -dotnet test /p:TargetFramework=net6.0 /p:CollectCoverage=true /p:Exclude=\"[Community.Wsl.Sdk.Tests]*\" /p:CoverletOutput=../CoverageResults/ /p:MergeWith="../CoverageResults/coverage.net6.0.json" /p:CoverletOutputFormat=\"cobertura,json\" /p:ThresholdType=\"line,branch,method\" -m:1 +dotnet test /p:TargetFramework=net6.0-windows /p:CollectCoverage=true /p:Exclude=\"[Community.Wsl.Sdk.Tests]*\" /p:CoverletOutput=../CoverageResults/ /p:MergeWith="../CoverageResults/coverage.net6.0.json" /p:CoverletOutputFormat=\"cobertura,json\" /p:ThresholdType=\"line,branch,method\" -m:1 diff --git a/generate-coverage.sh b/generate-coverage.sh index 3d9e7c2..8306093 100644 --- a/generate-coverage.sh +++ b/generate-coverage.sh @@ -2,5 +2,5 @@ set -e -dotnet test /p:TargetFramework=net6.0 /p:CollectCoverage=true /p:Exclude=\"[Community.Wsl.Sdk.Tests]*\" /p:CoverletOutput=../CoverageResults/ /p:MergeWith="../CoverageResults/coverage.net6.0.json" /p:CoverletOutputFormat=\"cobertura,json\" /p:ThresholdType=\"line,branch,method\" -m:1 +dotnet test /p:TargetFramework=net6.0-windows /p:CollectCoverage=true /p:Exclude=\"[Community.Wsl.Sdk.Tests]*\" /p:CoverletOutput=../CoverageResults/ /p:MergeWith="../CoverageResults/coverage.net6.0.json" /p:CoverletOutputFormat=\"cobertura,json\" /p:ThresholdType=\"line,branch,method\" -m:1