Skip to content

Commit

Permalink
Update Example Web Project to .NET 9 (#1364)
Browse files Browse the repository at this point in the history
* Update Example Web Project to .NET 9

* VersionOverride="9.0.0"

* TargetFrameworks

* net9.0
  • Loading branch information
thomhurst authored Dec 5, 2024
1 parent b0194bb commit eac4dc9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet-web-project-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ jobs:
dotnet-version: 9.0.x

- name: Run Tests
run: dotnet run -c Release
run: dotnet run -c Release -f net9.0
working-directory: "TUnit.Example.WebProject.Tests"
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFrameworks>net9.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<EnableTrimAnalyzer>false</EnableTrimAnalyzer>
Expand All @@ -17,7 +17,7 @@

<ItemGroup>
<PackageReference Include="FluentAssertions" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" VersionOverride="9.0.0" />
<PackageReference Include="Testcontainers.PostgreSql" />
<PackageReference Include="Microsoft.Testing.Extensions.TrxReport" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion TUnit.Example.WebProject/TUnit.Example.WebProject.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<EnableTrimAnalyzer>false</EnableTrimAnalyzer>
Expand Down

0 comments on commit eac4dc9

Please sign in to comment.