Repository navigation
[release/10.0.1xx] Set NuGet BuildNumber in a target (backport #8309, #9985) - #11030
Merged
Merged
Conversation
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]>
|
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. |
akoeplinger
approved these changes
Nov 16, 2026
akoeplinger
enabled auto-merge (squash)
November 16, 2026 09:58
This was referenced Nov 18, 2026
This was referenced Nov 25, 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.
Related to #8308
Context
Since #10972 (Nov 13), VMR builds of
release/10.0.1xxdon't pass aBuildNumberto nuget-client, because the property is evaluated before_PatchNumberis defined. NuGet packages therefore all get the fallback version7.0.3-rc.65534, and promotion fails because those versions already exist ondotnet-toolswith different content, for example build 3136037 (promotion 3136217). This blocks today's servicing code complete.Changes
BuildNumberis now set in aSetNuGetBuildNumbertarget that runs beforeSetBuildProperties, when_PatchNumberis defined.release/11.0.1xx): the modulus is 100000 instead of 50000, so the number doesn't wrap on October 1st.BuildNumberlogic now matchesrelease/11.0.1xxandmain, where it has run since August.7.0.3-rc.65534packages already ondotnet-toolssort above the new versions (rc.566xxthis month). No merged repo branch references them;dotnet/sdkrelease/10.0.1xxis on7.0.3-rc.2915.Testing
release/11.0.1xx, and the project file parses as XML.