From 6904f3b0182fe045fbfd1f2cb2ba307fe12f6a26 Mon Sep 17 00:00:00 2001 From: Rob Scaduto Date: Mon, 4 Dec 2023 11:53:33 -0500 Subject: [PATCH] Update target framework to dotnet 8 (#330) --- .github/workflows/dotnetcore.yml | 2 +- samples/CarterAndMVC/CarterAndMVC.csproj | 2 +- samples/CarterSample/CarterSample.csproj | 2 +- samples/ValidatorOnlyProject/ValidatorOnlyProject.csproj | 4 ++-- .../Carter.ResponseNegotiators.Newtonsoft.csproj | 4 ++-- src/Carter/Carter.csproj | 6 +++--- template/Template.csproj | 4 ++-- template/content/CarterTemplate.csproj | 2 +- test/Carter.Tests/AuthorizationTests.cs | 4 +--- test/Directory.Build.props | 4 ++-- 10 files changed, 16 insertions(+), 18 deletions(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index 280eb47..66d622f 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -24,7 +24,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v2 with: - dotnet-version: 7.* + dotnet-version: 8.* - name: Build Reason run: echo ${{github.ref}} and ${{github.event_name}} - name: Build with dotnet diff --git a/samples/CarterAndMVC/CarterAndMVC.csproj b/samples/CarterAndMVC/CarterAndMVC.csproj index 6c80ffb..37dca7b 100644 --- a/samples/CarterAndMVC/CarterAndMVC.csproj +++ b/samples/CarterAndMVC/CarterAndMVC.csproj @@ -1,6 +1,6 @@  - net7.0 + net8.0 CarterAndMVC Exe latest diff --git a/samples/CarterSample/CarterSample.csproj b/samples/CarterSample/CarterSample.csproj index db17b88..970b417 100644 --- a/samples/CarterSample/CarterSample.csproj +++ b/samples/CarterSample/CarterSample.csproj @@ -1,7 +1,7 @@  enable - net7.0 + net8.0 latest diff --git a/samples/ValidatorOnlyProject/ValidatorOnlyProject.csproj b/samples/ValidatorOnlyProject/ValidatorOnlyProject.csproj index 43c662c..c436f35 100644 --- a/samples/ValidatorOnlyProject/ValidatorOnlyProject.csproj +++ b/samples/ValidatorOnlyProject/ValidatorOnlyProject.csproj @@ -1,8 +1,8 @@  - net6.0 + net8.0 - + diff --git a/src/Carter.ResponseNegotiators.Newtonsoft/Carter.ResponseNegotiators.Newtonsoft.csproj b/src/Carter.ResponseNegotiators.Newtonsoft/Carter.ResponseNegotiators.Newtonsoft.csproj index bcd4595..13d275b 100644 --- a/src/Carter.ResponseNegotiators.Newtonsoft/Carter.ResponseNegotiators.Newtonsoft.csproj +++ b/src/Carter.ResponseNegotiators.Newtonsoft/Carter.ResponseNegotiators.Newtonsoft.csproj @@ -1,6 +1,6 @@ - net7.0 + net8.0 Jonathan Channon Carter is framework that is a thin layer of extension methods and functionality over ASP.NET Core allowing code to be more explicit and most importantly more enjoyable. asp.net core;nancy;.net core;routing;carter @@ -20,7 +20,7 @@ - + all diff --git a/src/Carter/Carter.csproj b/src/Carter/Carter.csproj index 31dd98b..f75ab14 100644 --- a/src/Carter/Carter.csproj +++ b/src/Carter/Carter.csproj @@ -1,6 +1,6 @@  - net7.0 + net8.0 Jonathan Channon Carter is framework that is a thin layer of extension methods and functionality over ASP.NET Core allowing code to be more explicit and most importantly more enjoyable. asp.net core;nancy;.net core;routing;carter @@ -20,8 +20,8 @@ - - + + all diff --git a/template/Template.csproj b/template/Template.csproj index 8e55a8a..b892569 100644 --- a/template/Template.csproj +++ b/template/Template.csproj @@ -1,6 +1,6 @@  - net7.0 + net8.0 Template CarterTemplate A dotnet-new template for Carter applications. @@ -34,4 +34,4 @@ - \ No newline at end of file + diff --git a/template/content/CarterTemplate.csproj b/template/content/CarterTemplate.csproj index 082ee52..3f121a7 100644 --- a/template/content/CarterTemplate.csproj +++ b/template/content/CarterTemplate.csproj @@ -1,6 +1,6 @@ - net7.0 + net8.0 CarterTemplate Exe diff --git a/test/Carter.Tests/AuthorizationTests.cs b/test/Carter.Tests/AuthorizationTests.cs index e862cef..22faa4f 100644 --- a/test/Carter.Tests/AuthorizationTests.cs +++ b/test/Carter.Tests/AuthorizationTests.cs @@ -112,7 +112,7 @@ public void Dispose() } /// - /// See https://learn.microsoft.com/en-us/aspnet/core/test/integration-tests?view=aspnetcore-7.0#mock-authentication + /// See https://learn.microsoft.com/en-us/aspnet/core/test/integration-tests?view=aspnetcore-8.0#mock-authentication /// private class TestAuthenticationHandler : AuthenticationHandler { @@ -138,5 +138,3 @@ protected override Task HandleAuthenticateAsync() } } } - - diff --git a/test/Directory.Build.props b/test/Directory.Build.props index 998b069..966e45b 100644 --- a/test/Directory.Build.props +++ b/test/Directory.Build.props @@ -1,6 +1,6 @@ - net7.0 + net8.0 true latest @@ -8,7 +8,7 @@ - +