Skip to content

Commit

Permalink
build: added support for .net 9
Browse files Browse the repository at this point in the history
  • Loading branch information
payetools committed Oct 15, 2024
1 parent 7d9179a commit 5530ac6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/continuous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
8.0.x
9.0.100-rc.2.24474.11
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
uses: actions/cache@v3
with:
Expand Down
14 changes: 14 additions & 0 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,20 @@
using static Nuke.Common.Tools.DotNet.DotNetTasks;
using static Nuke.Common.Tools.Slack.SlackTasks;

/*
NB Until Nuke supports .net 9.0, the following must be added to the build yml file, immediately
after the checkout step:
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
8.0.x
9.0.100-rc.2.24474.11
*/

[GitHubActions(
"continuous",
GitHubActionsImage.UbuntuLatest,
Expand Down
2 changes: 1 addition & 1 deletion build/_build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace></RootNamespace>
<NoWarn>CS0649;CS0169;CA1050;CA1822;CA2211;IDE1006</NoWarn>
<NukeRootDirectory>..</NukeRootDirectory>
Expand Down

0 comments on commit 5530ac6

Please sign in to comment.