Skip to content

Commit 6181335

Browse files
Thomas Haroldtgharold
Thomas Harold
authored andcommitted
Use NuGet "snupkg" format for symbols package
https://docs.microsoft.com/en-us/nuget/create-packages/symbol-packages-snupkg Symbol package publishing is only supported by the NuGet V3 API. NuGet.org supports its own symbols server repository and only accepts the new symbol package format - .snupkg. cake-build/cake#2362 cake-build/cake#3331 HOWEVER: This is only supported by the upcoming Cake 1.2 release. This PR ends up being about turning off the IncludeSymbols=true by default, requiring individual .csproj files to define it instead. Workaround for the 500 exception we are getting from the NuGet server on our public packages.
1 parent 65768fd commit 6181335

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build-net5.cake

+3-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,9 @@ Task("Package")
328328
MSBuildSettings = new DotNetCoreMSBuildSettings().SetVersion(packageVersion),
329329
NoBuild = true,
330330
OutputDirectory = artifactsDir,
331-
IncludeSymbols = true
331+
//TODO: Put this back in once Cake 1.2 is released, which adds support for "SymbolPackageFormat"
332+
//IncludeSymbols = true,
333+
//SymbolPackageFormat = "snupkg", // https://github.com/cake-build/cake/pull/3331
332334
});
333335
}
334336
}

0 commit comments

Comments
 (0)