Skip to content

Commit 5530ac6

Browse files
committed
build: added support for .net 9
1 parent 7d9179a commit 5530ac6

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

.github/workflows/continuous.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ jobs:
2626
- uses: actions/checkout@v3
2727
with:
2828
fetch-depth: 0
29+
30+
- name: Setup dotnet
31+
uses: actions/setup-dotnet@v4
32+
with:
33+
dotnet-version: |
34+
6.0.x
35+
8.0.x
36+
9.0.100-rc.2.24474.11
37+
2938
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
3039
uses: actions/cache@v3
3140
with:

build/Build.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,20 @@
1818
using static Nuke.Common.Tools.DotNet.DotNetTasks;
1919
using static Nuke.Common.Tools.Slack.SlackTasks;
2020

21+
/*
22+
NB Until Nuke supports .net 9.0, the following must be added to the build yml file, immediately
23+
after the checkout step:
24+
25+
- name: Setup dotnet
26+
uses: actions/setup-dotnet@v4
27+
with:
28+
dotnet-version: |
29+
6.0.x
30+
8.0.x
31+
9.0.100-rc.2.24474.11
32+
33+
*/
34+
2135
[GitHubActions(
2236
"continuous",
2337
GitHubActionsImage.UbuntuLatest,

build/_build.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net9.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
<RootNamespace></RootNamespace>
77
<NoWarn>CS0649;CS0169;CA1050;CA1822;CA2211;IDE1006</NoWarn>
88
<NukeRootDirectory>..</NukeRootDirectory>

0 commit comments

Comments
 (0)