Skip to content

Commit

Permalink
Target and test .NET 9 (net9.0)
Browse files Browse the repository at this point in the history
Where a concrete framework is required, target the most recent, which is
now .NET 9.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
  • Loading branch information
kevinoid committed Nov 20, 2024
1 parent e538082 commit 857bc4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion NetCoreProject.UnitTests/NetCoreProject.UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Description>Unit tests for NetCoreProject.</Description>

<!-- Multi-target all frameworks to test, newest first (for VS runner) -->
<TargetFrameworks>net8.0</TargetFrameworks>
<TargetFrameworks>net9.0</TargetFrameworks>
<!-- Test older frameworks in CI (to avoid requiring devs to install) -->
<!--
TODO: Test opportunistically outside of CI?
Expand Down
2 changes: 1 addition & 1 deletion NetCoreProject/NetCoreProject.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<PropertyGroup Condition="'$(OutputType)'=='Exe'">
<!-- Need a "concrete" framework (i.e. not netstandard) for Exe -->
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>

<!-- Configure class with Main method entry point -->
<StartupObject>NetCoreProject.Program</StartupObject>
Expand Down

0 comments on commit 857bc4d

Please sign in to comment.