Repository navigation
Move BuildNumber property set into target - #8309
Merged
Merged
Conversation
Fixes #8308 The _PatchNumber property isn't available at that point during evaluation. Move into a target to gain access to it.
|
Azure Pipelines: Successfully started running 1 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR addresses #8308 by deferring NuGet client BuildNumber argument composition until target execution time, so $(_PatchNumber) is available when calculating the modulo-based build number used for versioning.
Changes:
- Moves the
/p:BuildNumber=...addition toBuildArgsfrom project evaluation into a new target that runs beforeSetBuildProperties. - Keeps the existing modulo logic for mapping .NET patch numbers into NuGet’s preview iteration space.
Show a summary per file
| File | Description |
|---|---|
| repo-projects/nuget-client.proj | Moves BuildArgs BuildNumber calculation into a pre-SetBuildProperties target so $(_PatchNumber) is available. |
Review details
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 1/1 changed files
- Comments generated: 1
- Review effort level: Lite
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
ViktorHofer
enabled auto-merge (squash)
August 14, 2026 12:58
akoeplinger
approved these changes
Aug 14, 2026
AlesProkop
added a commit
that referenced
this pull request
Nov 16, 2026
nuget-client got no BuildNumber in VMR builds because the property was evaluated before _PatchNumber is defined, so all NuGet packages were versioned rc.65534 and promotion failed with "already exists ... with different content" on dotnet-tools. This also takes the modulo 100000 change so the number doesn't wrap on October 1st. Co-authored-by: Copilot App <[email protected]>
AlesProkop
added a commit
that referenced
this pull request
Nov 16, 2026
nuget-client got no BuildNumber in VMR builds because the property was evaluated before _PatchNumber is defined, so all NuGet packages were versioned rc.65534 and promotion failed with "already exists ... with different content" on dotnet-tools. This also takes the modulo 100000 change so the number doesn't wrap on October 1st. Co-authored-by: Copilot App <[email protected]>
akoeplinger
pushed a commit
that referenced
this pull request
Nov 16, 2026
…9985) (#11031) Co-authored-by: Copilot App <[email protected]>
akoeplinger
pushed a commit
that referenced
this pull request
Nov 16, 2026
…9985) (#11030) Co-authored-by: Copilot App <[email protected]>
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.
Fixes #8308
The _PatchNumber property isn't available at that point during evaluation. Move into a target to gain access to it.