Skip to content

Commit 65b5e15

Browse files
committed
Add SymbolPackageFormat
1 parent 5ab2f17 commit 65b5e15

File tree

5 files changed

+111
-105
lines changed

5 files changed

+111
-105
lines changed

Build/.nuke/build.schema.json

Lines changed: 105 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,71 @@
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+
"Build",
28+
"Clean",
29+
"Compile",
30+
"CompileExample",
31+
"GitPreRelease",
32+
"GitRelease",
33+
"Pack",
34+
"PrePack",
35+
"Release",
36+
"ShowGitVersion",
37+
"Sign",
38+
"Test"
39+
]
40+
},
41+
"Verbosity": {
42+
"type": "string",
43+
"description": "",
44+
"enum": [
45+
"Verbose",
46+
"Normal",
47+
"Minimal",
48+
"Quiet"
49+
]
50+
},
51+
"NukeBuild": {
852
"properties": {
953
"Continue": {
1054
"type": "boolean",
1155
"description": "Indicates to continue a previously failed build attempt"
1256
},
13-
"Folder": {
14-
"type": "string"
15-
},
16-
"GitHubToken": {
17-
"type": "string",
18-
"default": "Secrets must be entered via 'nuke :secrets [profile]'"
19-
},
2057
"Help": {
2158
"type": "boolean",
2259
"description": "Shows the help text for this build assembly"
2360
},
2461
"Host": {
25-
"type": "string",
2662
"description": "Host for execution. Default is 'automatic'",
27-
"enum": [
28-
"AppVeyor",
29-
"AzurePipelines",
30-
"Bamboo",
31-
"Bitbucket",
32-
"Bitrise",
33-
"GitHubActions",
34-
"GitLab",
35-
"Jenkins",
36-
"Rider",
37-
"SpaceAutomation",
38-
"TeamCity",
39-
"Terminal",
40-
"TravisCI",
41-
"VisualStudio",
42-
"VSCode"
43-
]
44-
},
45-
"MainName": {
46-
"type": "string"
47-
},
48-
"Name": {
49-
"type": "string"
63+
"$ref": "#/definitions/Host"
5064
},
5165
"NoLogo": {
5266
"type": "boolean",
5367
"description": "Disables displaying the NUKE logo"
5468
},
55-
"NugetApiKey": {
56-
"type": "string",
57-
"default": "Secrets must be entered via 'nuke :secrets [profile]'"
58-
},
59-
"NugetApiUrl": {
60-
"type": "string",
61-
"default": "Secrets must be entered via 'nuke :secrets [profile]'"
62-
},
6369
"Partition": {
6470
"type": "string",
6571
"description": "Partition to use on CI"
@@ -68,15 +74,64 @@
6874
"type": "boolean",
6975
"description": "Shows the execution plan (HTML)"
7076
},
71-
"PreReleaseFilter": {
77+
"Profile": {
7278
"type": "array",
79+
"description": "Defines the profiles to load",
7380
"items": {
7481
"type": "string"
7582
}
7683
},
77-
"Profile": {
84+
"Root": {
85+
"type": "string",
86+
"description": "Root directory during build execution"
87+
},
88+
"Skip": {
89+
"type": "array",
90+
"description": "List of targets to be skipped. Empty list skips all dependencies",
91+
"items": {
92+
"$ref": "#/definitions/ExecutableTarget"
93+
}
94+
},
95+
"Target": {
96+
"type": "array",
97+
"description": "List of targets to be invoked. Default is '{default_target}'",
98+
"items": {
99+
"$ref": "#/definitions/ExecutableTarget"
100+
}
101+
},
102+
"Verbosity": {
103+
"description": "Logging verbosity during build execution. Default is 'Normal'",
104+
"$ref": "#/definitions/Verbosity"
105+
}
106+
}
107+
}
108+
},
109+
"allOf": [
110+
{
111+
"properties": {
112+
"Folder": {
113+
"type": "string"
114+
},
115+
"GitHubToken": {
116+
"type": "string",
117+
"default": "Secrets must be entered via 'nuke :secrets [profile]'"
118+
},
119+
"MainName": {
120+
"type": "string"
121+
},
122+
"Name": {
123+
"type": "string"
124+
},
125+
"NugetApiKey": {
126+
"type": "string",
127+
"default": "Secrets must be entered via 'nuke :secrets [profile]'"
128+
},
129+
"NugetApiUrl": {
130+
"type": "string",
131+
"default": "Secrets must be entered via 'nuke :secrets [profile]'"
132+
},
133+
"PreReleaseFilter": {
78134
"type": "array",
79-
"description": "Defines the profiles to load",
80135
"items": {
81136
"type": "string"
82137
}
@@ -90,10 +145,6 @@
90145
"ReleaseNameVersion": {
91146
"type": "boolean"
92147
},
93-
"Root": {
94-
"type": "string",
95-
"description": "Root directory during build execution"
96-
},
97148
"SignFile": {
98149
"type": "string",
99150
"default": "Secrets must be entered via 'nuke :secrets [profile]'"
@@ -102,52 +153,10 @@
102153
"type": "string",
103154
"default": "Secrets must be entered via 'nuke :secrets [profile]'"
104155
},
105-
"Skip": {
106-
"type": "array",
107-
"description": "List of targets to be skipped. Empty list skips all dependencies",
108-
"items": {
109-
"type": "string",
110-
"enum": [
111-
"Build",
112-
"Clean",
113-
"Compile",
114-
"CompileExample",
115-
"GitPreRelease",
116-
"GitRelease",
117-
"Pack",
118-
"PrePack",
119-
"Release",
120-
"ShowGitVersion",
121-
"Sign",
122-
"Test"
123-
]
124-
}
125-
},
126156
"Solution": {
127157
"type": "string",
128158
"description": "Path to a solution file that is automatically loaded"
129159
},
130-
"Target": {
131-
"type": "array",
132-
"description": "List of targets to be invoked. Default is '{default_target}'",
133-
"items": {
134-
"type": "string",
135-
"enum": [
136-
"Build",
137-
"Clean",
138-
"Compile",
139-
"CompileExample",
140-
"GitPreRelease",
141-
"GitRelease",
142-
"Pack",
143-
"PrePack",
144-
"Release",
145-
"ShowGitVersion",
146-
"Sign",
147-
"Test"
148-
]
149-
}
150-
},
151160
"TestProjectName": {
152161
"type": "string"
153162
},
@@ -156,18 +165,11 @@
156165
},
157166
"UnlistNuget": {
158167
"type": "boolean"
159-
},
160-
"Verbosity": {
161-
"type": "string",
162-
"description": "Logging verbosity during build execution. Default is 'Normal'",
163-
"enum": [
164-
"Minimal",
165-
"Normal",
166-
"Quiet",
167-
"Verbose"
168-
]
169168
}
170169
}
170+
},
171+
{
172+
"$ref": "#/definitions/NukeBuild"
171173
}
172-
}
174+
]
173175
}

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
88
### Update
99
- Update `Nuke.Common` to `8.1.4`.
1010
- Update `FileSystemTasks.CopyDirectoryRecursively` to `AbsolutePathExtensions.CopyToDirectory`.
11+
- Add `SymbolPackageFormat` and `IncludeSymbols` in the package.
12+
- Update release `*.nupkg` to `*.*nupkg` to copy symbol package format. (Fix: #75)
1113

1214
## [1.8.1] / 2024-05-13
1315
### Updated

ricaun.Nuke/Components/IHazExample.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public void BuildProjectsAndRelease(IEnumerable<Project> projects, bool releaseP
7373

7474
if (releasePackages)
7575
{
76-
Globbing.GlobFiles(exampleDirectory, "**/*.nupkg")
76+
Globbing.GlobFiles(exampleDirectory, "**/*.*nupkg")
7777
.ForEach(file =>
7878
{
7979
Serilog.Log.Information($"Copy nupkg: {file} to {ReleaseDirectory}");

ricaun.Nuke/Components/IRelease.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void ReleaseProject(Project project)
4444
var fileNameVersion = GetReleaseFileNameVersion(project.Name, version);
4545
var ProjectDirectory = ReleaseDirectory / fileNameVersion;
4646

47-
var nupkgs = Globbing.GlobFiles(ContentDirectory, "**/*.nupkg");
47+
var nupkgs = Globbing.GlobFiles(ContentDirectory, "**/*.*nupkg");
4848
if (nupkgs.Count > 0)
4949
{
5050
nupkgs.ForEach(file => AbsolutePathExtensions.CopyToDirectory(file, ProjectDirectory));

ricaun.Nuke/ricaun.Nuke.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343

4444
<PropertyGroup Condition="!$(Configuration.Contains('Debug'))">
4545
<DocumentationFile>bin\Release\$(AssemblyName).xml</DocumentationFile>
46+
<IncludeSymbols>true</IncludeSymbols>
47+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
4648
</PropertyGroup>
4749

4850
<ItemGroup>

0 commit comments

Comments
 (0)