Skip to content

Share name@version parsing through PackageIdentity - #7857

Merged
zivkan merged 3 commits into
devfrom
dev-zivkan-package-identity-shared-code
Nov 16, 2026
Merged

zivkan merged 3 commits into
devfrom
dev-zivkan-package-identity-shared-code

Conversation

@zivkan

@zivkan zivkan commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Bug

Fixes: NuGet/Home#15133

Description

Extracts the shared name@version parsing method into something that can be shared with other components.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc. N/A

Extract the shared parser and XPlat adoption from #7771 as the bottom layer of the init-script PR stack.

Co-authored-by: Copilot App <[email protected]>
@zivkan zivkan added the Engineering Changes related to the build infrastructure of the repo and that do not change product code label Nov 6, 2026
@zivkan
zivkan added this pull request to stack #7859 November 6, 2026 02:40
@zivkan zivkan removed the Engineering Changes related to the build infrastructure of the repo and that do not change product code label Nov 6, 2026
@zivkan
zivkan marked this pull request as ready for review November 6, 2026 02:56
@zivkan
zivkan requested a review from a team as a code owner November 6, 2026 02:56
@zivkan
zivkan requested review from jebriede and jeffkl November 6, 2026 02:56
Rename ParseAtSeparated to Parse and add TryParse. Update callers, API baselines, and tests, including assertions that preserve the original version string and build metadata.

Co-authored-by: Copilot App <[email protected]>
@zivkan
zivkan requested review from jebriede and jeffkl November 11, 2026 22:11
Remove package ID length enforcement from Parse and TryParse. Share separator handling through GetParts, declare the parsed version inline, and verify long IDs parse successfully.

Co-authored-by: Copilot App <[email protected]>
@zivkan
zivkan requested a review from jeffkl November 13, 2026 00:39

@jeffkl jeffkl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@zivkan
zivkan merged commit 1e37797 into dev Nov 16, 2026
18 checks passed
@zivkan
zivkan deleted the dev-zivkan-package-identity-shared-code branch November 16, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add public API to parse name@version package identifiers

3 participants