Skip to content

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

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

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

Conversation

@AlesProkop

Copy link
Copy Markdown
Member

Related to #8308

Context

Since #10973 (Nov 13), VMR builds of release/10.0.4xx 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.9.0-rc.65534, and promotion fails because those versions already exist on dotnet-tools with different content, for example build 3135626 (promotion 3135974). 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.

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