Skip to content

Commit 411539f

Browse files
committed
build: Update Nuke project to net9.0
1 parent c3d68ea commit 411539f

File tree

3 files changed

+82
-79
lines changed

3 files changed

+82
-79
lines changed

.nuke/build.schema.json

Lines changed: 79 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,70 @@
11
{
22
"$schema": "http://json-schema.org/draft-04/schema#",
3-
"$ref": "#/definitions/build",
4-
"title": "Build Schema",
53
"definitions": {
6-
"build": {
7-
"type": "object",
4+
"Host": {
5+
"type": "string",
6+
"enum": [
7+
"AppVeyor",
8+
"AzurePipelines",
9+
"Bamboo",
10+
"Bitbucket",
11+
"Bitrise",
12+
"GitHubActions",
13+
"GitLab",
14+
"Jenkins",
15+
"Rider",
16+
"SpaceAutomation",
17+
"TeamCity",
18+
"Terminal",
19+
"TravisCI",
20+
"VisualStudio",
21+
"VSCode"
22+
]
23+
},
24+
"ExecutableTarget": {
25+
"type": "string",
26+
"enum": [
27+
"Clean",
28+
"Compile",
29+
"Cover",
30+
"Pack",
31+
"Prepare",
32+
"Publish",
33+
"PublishGitHub",
34+
"PublishNuGet",
35+
"Restore",
36+
"Test",
37+
"Verify"
38+
]
39+
},
40+
"Verbosity": {
41+
"type": "string",
42+
"description": "",
43+
"enum": [
44+
"Verbose",
45+
"Normal",
46+
"Minimal",
47+
"Quiet"
48+
]
49+
},
50+
"NukeBuild": {
851
"properties": {
9-
"Configuration": {
10-
"type": "string",
11-
"description": "Configuration to build - Default is 'Debug' (local) or 'Release' (server)",
12-
"enum": [
13-
"Debug",
14-
"Release"
15-
]
16-
},
1752
"Continue": {
1853
"type": "boolean",
1954
"description": "Indicates to continue a previously failed build attempt"
2055
},
21-
"GitHubToken": {
22-
"type": "string",
23-
"description": "The access token for making calls to the GitHub API"
24-
},
2556
"Help": {
2657
"type": "boolean",
2758
"description": "Shows the help text for this build assembly"
2859
},
2960
"Host": {
30-
"type": "string",
3161
"description": "Host for execution. Default is 'automatic'",
32-
"enum": [
33-
"AppVeyor",
34-
"AzurePipelines",
35-
"Bamboo",
36-
"Bitbucket",
37-
"Bitrise",
38-
"GitHubActions",
39-
"GitLab",
40-
"Jenkins",
41-
"Rider",
42-
"SpaceAutomation",
43-
"TeamCity",
44-
"Terminal",
45-
"TravisCI",
46-
"VisualStudio",
47-
"VSCode"
48-
]
62+
"$ref": "#/definitions/Host"
4963
},
5064
"NoLogo": {
5165
"type": "boolean",
5266
"description": "Disables displaying the NUKE logo"
5367
},
54-
"NuGetApiKey": {
55-
"type": "string",
56-
"description": "The API key for publishing NuGet packages"
57-
},
5868
"Partition": {
5969
"type": "string",
6070
"description": "Partition to use on CI"
@@ -78,61 +88,54 @@
7888
"type": "array",
7989
"description": "List of targets to be skipped. Empty list skips all dependencies",
8090
"items": {
81-
"type": "string",
82-
"enum": [
83-
"Clean",
84-
"Compile",
85-
"Cover",
86-
"Pack",
87-
"Prepare",
88-
"Publish",
89-
"PublishGitHub",
90-
"PublishNuGet",
91-
"Restore",
92-
"Test",
93-
"Verify"
94-
]
91+
"$ref": "#/definitions/ExecutableTarget"
9592
}
9693
},
97-
"Solution": {
98-
"type": "string",
99-
"description": "Path to a solution file that is automatically loaded"
100-
},
10194
"Target": {
10295
"type": "array",
10396
"description": "List of targets to be invoked. Default is '{default_target}'",
10497
"items": {
105-
"type": "string",
106-
"enum": [
107-
"Clean",
108-
"Compile",
109-
"Cover",
110-
"Pack",
111-
"Prepare",
112-
"Publish",
113-
"PublishGitHub",
114-
"PublishNuGet",
115-
"Restore",
116-
"Test",
117-
"Verify"
118-
]
98+
"$ref": "#/definitions/ExecutableTarget"
11999
}
120100
},
121101
"Verbosity": {
122-
"type": "string",
123102
"description": "Logging verbosity during build execution. Default is 'Normal'",
103+
"$ref": "#/definitions/Verbosity"
104+
}
105+
}
106+
}
107+
},
108+
"allOf": [
109+
{
110+
"properties": {
111+
"Configuration": {
112+
"type": "string",
113+
"description": "Configuration to build - Default is 'Debug' (local) or 'Release' (server)",
124114
"enum": [
125-
"Minimal",
126-
"Normal",
127-
"Quiet",
128-
"Verbose"
115+
"Debug",
116+
"Release"
129117
]
130118
},
119+
"GitHubToken": {
120+
"type": "string",
121+
"description": "The access token for making calls to the GitHub API"
122+
},
123+
"NuGetApiKey": {
124+
"type": "string",
125+
"description": "The API key for publishing NuGet packages"
126+
},
127+
"Solution": {
128+
"type": "string",
129+
"description": "Path to a solution file that is automatically loaded"
130+
},
131131
"Version": {
132132
"type": "string",
133133
"description": "Version of the NuGet package to build"
134134
}
135135
}
136+
},
137+
{
138+
"$ref": "#/definitions/NukeBuild"
136139
}
137-
}
140+
]
138141
}

build/_build.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net9.0</TargetFramework>
66
<RootNamespace></RootNamespace>
77
<ImplicitUsings>enable</ImplicitUsings>
88
<NoWarn>CS0649;CS0169</NoWarn>
99
<NukeRootDirectory>..</NukeRootDirectory>
1010
<NukeScriptDirectory>..</NukeScriptDirectory>
1111
<NukeTelemetryVersion>1</NukeTelemetryVersion>
1212
</PropertyGroup>
13-
13+
1414
<PropertyGroup>
1515
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally>
1616
</PropertyGroup>

samples/WebApiSample/WebApiSample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<LangVersion>latest</LangVersion>
66
<Nullable>enable</Nullable>
77
<ImplicitUsings>enable</ImplicitUsings>

0 commit comments

Comments
 (0)