diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 850b756..0cfd9f9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,9 @@ jobs: - name: Setup .NET SDK uses: actions/setup-dotnet@v3.0.3 with: - dotnet-version: 6.0.x + dotnet-version: | + 6.0.x + 7.0.x - name: Build run: dotnet build src --configuration Release - name: Tests diff --git a/src/ServiceComposer.AspNetCore.Testing/SelfContainedWebApplicationFactoryWithHost.cs b/src/ServiceComposer.AspNetCore.Testing/SelfContainedWebApplicationFactoryWithHost.cs index 2f09ee3..2035eb5 100644 --- a/src/ServiceComposer.AspNetCore.Testing/SelfContainedWebApplicationFactoryWithHost.cs +++ b/src/ServiceComposer.AspNetCore.Testing/SelfContainedWebApplicationFactoryWithHost.cs @@ -1,6 +1,4 @@ -#if NET5_0 || NETCOREAPP - -using System; +using System; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc.Testing; @@ -49,5 +47,4 @@ protected override IHostBuilder CreateHostBuilder() return hostBuilder; } } -} -#endif \ No newline at end of file +} \ No newline at end of file diff --git a/src/ServiceComposer.AspNetCore.Testing/ServiceComposer.AspNetCore.Testing.csproj b/src/ServiceComposer.AspNetCore.Testing/ServiceComposer.AspNetCore.Testing.csproj index 8c2780f..a3e37dd 100644 --- a/src/ServiceComposer.AspNetCore.Testing/ServiceComposer.AspNetCore.Testing.csproj +++ b/src/ServiceComposer.AspNetCore.Testing/ServiceComposer.AspNetCore.Testing.csproj @@ -1,7 +1,7 @@  - net6.0 + net6.0;net7.0 @@ -21,16 +21,23 @@ - + - + - - + + + + + + + + + - +