From 0d42f78e83ad0834d429467cf35721bf22a555bd Mon Sep 17 00:00:00 2001 From: Alexey Zimarev Date: Thu, 15 Jul 2021 12:51:29 +0200 Subject: [PATCH] Let us use C# 9 (#1609) * Let us use C# 9 * Make the build happy --- .github/workflows/build-dev.yml | 12 ------------ .github/workflows/pull-request.yml | 2 +- .../RestSharp.Benchmarks/RestSharp.Benchmarks.csproj | 2 +- .../RestSharp.IntegrationTests.csproj | 2 +- .../RestSharp.Serializers.Tests.csproj | 2 +- .../RestSharp.Tests.Shared.csproj | 2 +- test/RestSharp.Tests/RestSharp.Tests.csproj | 2 +- 7 files changed, 6 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build-dev.yml b/.github/workflows/build-dev.yml index fc9b9c565..8e148f41b 100644 --- a/.github/workflows/build-dev.yml +++ b/.github/workflows/build-dev.yml @@ -12,18 +12,6 @@ on: - '*' jobs: -# test-netcore-linux: -# runs-on: ubuntu-latest -# -# steps: -# - uses: actions/checkout@v2.3.4 -# - uses: actions/setup-dotnet@v1 -# with: -# dotnet-version: '3.1.201' -# -# - name: Run tests netcoreapp3.1 -# run: dotnet test -c Release -f netcoreapp3.1 - test-win: runs-on: windows-latest diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 4901e38a4..ad657d228 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@v2.3.4 - uses: actions/setup-dotnet@v1.8.1 with: - dotnet-version: '3.1.201' + dotnet-version: '5.0' - name: Run tests run: dotnet test -c Release diff --git a/benchmarks/RestSharp.Benchmarks/RestSharp.Benchmarks.csproj b/benchmarks/RestSharp.Benchmarks/RestSharp.Benchmarks.csproj index 2c3d8bad4..f4e7ae713 100644 --- a/benchmarks/RestSharp.Benchmarks/RestSharp.Benchmarks.csproj +++ b/benchmarks/RestSharp.Benchmarks/RestSharp.Benchmarks.csproj @@ -2,7 +2,7 @@ Exe - netcoreapp3.1 + net5 diff --git a/test/RestSharp.IntegrationTests/RestSharp.IntegrationTests.csproj b/test/RestSharp.IntegrationTests/RestSharp.IntegrationTests.csproj index 4a149eacf..bbef71737 100644 --- a/test/RestSharp.IntegrationTests/RestSharp.IntegrationTests.csproj +++ b/test/RestSharp.IntegrationTests/RestSharp.IntegrationTests.csproj @@ -1,6 +1,6 @@  - net452;netcoreapp3.1 + net452;net5 0 diff --git a/test/RestSharp.Serializers.Tests/RestSharp.Serializers.Tests.csproj b/test/RestSharp.Serializers.Tests/RestSharp.Serializers.Tests.csproj index a485de1a9..4896525f2 100644 --- a/test/RestSharp.Serializers.Tests/RestSharp.Serializers.Tests.csproj +++ b/test/RestSharp.Serializers.Tests/RestSharp.Serializers.Tests.csproj @@ -1,6 +1,6 @@ - net461;netcoreapp3.1 + net461;net5 diff --git a/test/RestSharp.Tests.Shared/RestSharp.Tests.Shared.csproj b/test/RestSharp.Tests.Shared/RestSharp.Tests.Shared.csproj index 54910e7d1..13909b638 100644 --- a/test/RestSharp.Tests.Shared/RestSharp.Tests.Shared.csproj +++ b/test/RestSharp.Tests.Shared/RestSharp.Tests.Shared.csproj @@ -1,6 +1,6 @@ - net452;netcoreapp3.1 + net452;net5 false diff --git a/test/RestSharp.Tests/RestSharp.Tests.csproj b/test/RestSharp.Tests/RestSharp.Tests.csproj index c58c14f20..7beaf5e38 100644 --- a/test/RestSharp.Tests/RestSharp.Tests.csproj +++ b/test/RestSharp.Tests/RestSharp.Tests.csproj @@ -1,6 +1,6 @@  - net452;netcoreapp3.1 + net452;net5