Skip to content

Commit

Permalink
.Net 9
Browse files Browse the repository at this point in the history
Doesn't affect the frameworks that nuget packages target, but .net 9 will now be used for building packages and running tests in CI.
  • Loading branch information
JoshKeegan committed Nov 15, 2024
1 parent 9be0044 commit def6c33
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
ci_build:
name: CI Build
runs-on: ubuntu-latest
container: joshkeegan/dotnet-mixed-build:7.0
container: joshkeegan/dotnet-mixed-build:8.0
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
cd:
name: CD
runs-on: ubuntu-latest
container: mcr.microsoft.com/dotnet/sdk:8.0
container: mcr.microsoft.com/dotnet/sdk:9.0
needs:
- ci_build
- ci_docs
Expand Down
2 changes: 1 addition & 1 deletion test/UnitTests.Reqnroll/UnitTests.Reqnroll.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net48</TargetFrameworks>
<TargetFrameworks>net9.0;net48</TargetFrameworks>

<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net48</TargetFrameworks>
<TargetFrameworks>net9.0;net48</TargetFrameworks>

<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion test/UnitTests.SpecFlow/UnitTests.SpecFlow.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net48</TargetFrameworks>
<TargetFrameworks>net9.0;net48</TargetFrameworks>

<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
Expand Down
7 changes: 6 additions & 1 deletion test/UnitTests/UnitTests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net48</TargetFrameworks>
<TargetFrameworks>net9.0;net48</TargetFrameworks>

<IsTestProject>true</IsTestProject>
<IsPackable>false</IsPackable>
Expand Down Expand Up @@ -32,6 +32,11 @@

<ItemGroup>
<ProjectReference Include="..\..\src\xRetry\xRetry.csproj" />
</ItemGroup>

<!-- Required for BinaryFormatter in .Net9.0+ -->
<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
<PackageReference Include="System.Runtime.Serialization.Formatters" Version="9.0.0" />
</ItemGroup>

</Project>

0 comments on commit def6c33

Please sign in to comment.