From d02c9e552e2fa9b9ac7e61316b9eb4b26007bca7 Mon Sep 17 00:00:00 2001 From: Patrik Svensson Date: Fri, 29 Oct 2021 21:05:17 +0200 Subject: [PATCH] Add net6.0 TFM (#603) Closes #602 --- .github/workflows/ci.yaml | 6 ++++++ .github/workflows/publish.yaml | 12 ++++++++++++ global.json | 2 +- src/Directory.Build.props | 4 ---- .../Spectre.Console.ImageSharp.csproj | 2 +- .../Spectre.Console.Testing.csproj | 2 +- src/Spectre.Console/Spectre.Console.csproj | 16 ++-------------- .../Spectre.Console.Tests.csproj | 4 ++-- 8 files changed, 25 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1daae09..7d7dbda 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -85,6 +85,12 @@ jobs: with: dotnet-version: 5.0.301 + - name: Setup dotnet 6.0 + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 6.0.x + include-prerelease: true + - name: Integration Tests shell: bash run: | diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index a150342..eeefbf2 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -73,6 +73,12 @@ jobs: with: dotnet-version: 5.0.301 + - name: Setup dotnet 6.0 + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 6.0.x + include-prerelease: true + - name: Build shell: bash run: | @@ -104,6 +110,12 @@ jobs: with: dotnet-version: 5.0.301 + - name: Setup dotnet 6.0 + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 6.0.x + include-prerelease: true + - name: Publish shell: bash run: | diff --git a/global.json b/global.json index 9c8e4c6..c59adb2 100644 --- a/global.json +++ b/global.json @@ -1,7 +1,7 @@ { "projects": [ "src", "tests" ], "sdk": { - "version": "5.0.301", + "version": "6.0.100-rc.2.21505.57", "rollForward": "latestFeature" } } diff --git a/src/Directory.Build.props b/src/Directory.Build.props index d25235a..075bb78 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -34,10 +34,6 @@ - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - All diff --git a/src/Spectre.Console.ImageSharp/Spectre.Console.ImageSharp.csproj b/src/Spectre.Console.ImageSharp/Spectre.Console.ImageSharp.csproj index 5590b44..39c235f 100644 --- a/src/Spectre.Console.ImageSharp/Spectre.Console.ImageSharp.csproj +++ b/src/Spectre.Console.ImageSharp/Spectre.Console.ImageSharp.csproj @@ -1,7 +1,7 @@ - net5.0;netstandard2.0 + net6.0;net5.0;netstandard2.0 enable true A library that extends Spectre.Console with ImageSharp superpowers. diff --git a/src/Spectre.Console.Testing/Spectre.Console.Testing.csproj b/src/Spectre.Console.Testing/Spectre.Console.Testing.csproj index 3a50e9b..b38c7b2 100644 --- a/src/Spectre.Console.Testing/Spectre.Console.Testing.csproj +++ b/src/Spectre.Console.Testing/Spectre.Console.Testing.csproj @@ -1,7 +1,7 @@ - net5.0;netstandard2.0 + net6.0;net5.0;netstandard2.0 false enable true diff --git a/src/Spectre.Console/Spectre.Console.csproj b/src/Spectre.Console/Spectre.Console.csproj index 5537d74..41f0a16 100644 --- a/src/Spectre.Console/Spectre.Console.csproj +++ b/src/Spectre.Console/Spectre.Console.csproj @@ -1,7 +1,7 @@ - net5.0;netstandard2.0 + net6.0;net5.0;netstandard2.0 enable true SA1633 @@ -36,19 +36,7 @@ False - - $(DefineConstants)TRACE;WCWIDTH_VISIBILITY_INTERNAL - - - - $(DefineConstants)TRACE;WCWIDTH_VISIBILITY_INTERNAL - - - - $(DefineConstants)TRACE;WCWIDTH_VISIBILITY_INTERNAL - - - + $(DefineConstants)TRACE;WCWIDTH_VISIBILITY_INTERNAL diff --git a/test/Spectre.Console.Tests/Spectre.Console.Tests.csproj b/test/Spectre.Console.Tests/Spectre.Console.Tests.csproj index a7f7d21..dd5bb05 100644 --- a/test/Spectre.Console.Tests/Spectre.Console.Tests.csproj +++ b/test/Spectre.Console.Tests/Spectre.Console.Tests.csproj @@ -1,8 +1,8 @@ - net5.0;net48 - net5.0 + net6.0;net5.0;net48 + net6.0;net5.0 9.0