Repository navigation
Apply the version suffix before naming the symbols package - #7814
Merged
Merged
Conversation
BuildSymbolsPackage computed the output path before InitCommonPackageBuilderProperties applied -Suffix, so the .symbols.nupkg file name had no suffix. Fixes NuGet/Home#3530
jeffkl
approved these changes
Oct 22, 2026
zivkan
approved these changes
Oct 27, 2026
This was referenced Oct 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
Fixes: NuGet/Home#3530
Description
nuget pack my.nuspec -Symbols -Suffix betacreatedX.1.0.0-beta.nupkgandX.1.0.0.symbols.nupkg, so the suffix was missing from the symbols package's file name. The version inside the symbols package was correct.In
PackCommandRunner.BuildSymbolsPackage, the output path was computed from the builder's version beforeInitCommonPackageBuilderPropertiesapplied-Suffix(and-Version) to it. The main package doesn't have this problem becauseBuildFromNuspeccallsInitCommonPackageBuilderPropertiesfirst. The two calls are now in the same order for the symbols package.Test:
RunPackageBuild_WithSymbolsAndSuffix_BothPackageFileNamesIncludeSuffixpacks a nuspec withSymbols = true, Suffix = "beta". It checks both file names and the symbols package's version, and it fails ondev.NuGet.Commands.Testtests withPackin the name, on net10.0: 409 passed, 2 skipped.PR Checklist