Skip to content

Commit 6a78eb6

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
1 parent 65768fd commit 6a78eb6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

build-net5.cake

+7-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,13 @@ Task("Package")
328328
MSBuildSettings = new DotNetCoreMSBuildSettings().SetVersion(packageVersion),
329329
NoBuild = true,
330330
OutputDirectory = artifactsDir,
331-
IncludeSymbols = true
331+
332+
IncludeSymbols = true,
333+
334+
//TODO: Remove ArgumentCustomization, add SymbolPackageFormat once Cake 1.2 is released
335+
// https://github.com/cake-build/cake/pull/3331
336+
ArgumentCustomization = x => x.Append("-p:SymbolPackageFormat=snupkg")
337+
//SymbolPackageFormat = "snupkg",
332338
});
333339
}
334340
}

0 commit comments

Comments
 (0)