Skip to content

[release/10.0.1xx] Set NuGet BuildNumber in a target (backport #8309, #9985) - #11030

Merged
akoeplinger merged 1 commit into
release/10.0.1xxfrom
alesprokop-backport-8309-10.0.1xx
Nov 16, 2026
Merged

akoeplinger merged 1 commit into
release/10.0.1xxfrom
alesprokop-backport-8309-10.0.1xx

Conversation

@AlesProkop

Copy link
Copy Markdown
Member

Related to #8308

Context

Since #10972 (Nov 13), VMR builds of release/10.0.1xx don't pass a BuildNumber to nuget-client, because the property is evaluated before _PatchNumber is defined. NuGet packages therefore all get the fallback version 7.0.3-rc.65534, and promotion fails because those versions already exist on dotnet-tools with different content, for example build 3136037 (promotion 3136217). This blocks today's servicing code complete.

Changes

Testing

  • The new target block is identical to release/11.0.1xx, and the project file parses as XML.
  • PR validation doesn't publish packages, so the first official build after merge is the real check.

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
AlesProkop requested review from a team as code owners November 16, 2026 09:52
@azure-pipelines

Copy link
Copy Markdown
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
akoeplinger enabled auto-merge (squash) November 16, 2026 09:58
@akoeplinger
akoeplinger merged commit d1edac4 into release/10.0.1xx Nov 16, 2026
11 checks passed
@akoeplinger
akoeplinger deleted the alesprokop-backport-8309-10.0.1xx branch November 16, 2026 12:40
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.

2 participants