Skip to content

Build shipping assemblies before delayed trimming projects - #69907

Merged
wtgodbe merged 1 commit into
dotnet:mainfrom
wtgodbe:wtgodbe/order-delayed-trimming-builds
Oct 16, 2026
Merged

wtgodbe merged 1 commit into
dotnet:mainfrom
wtgodbe:wtgodbe/order-delayed-trimming-builds

Conversation

@wtgodbe

@wtgodbe wtgodbe commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Build shipping assemblies before delayed trimming projects

Impact: Prevents generated trimming and NativeAOT publishes from racing ahead of the shipping assemblies they reference, eliminating the unmatched CS0006 failures seen in internal Windows CI.

Build shipping assembly closure before delayed trimming apps

Description

Builds Microsoft.Internal.Aspnetcore.DotNetApiDocs.Transport before the remaining delayed-build projects. That project already references every shipping assembly, so it establishes the complete producer closure before generated trimming projects publish with BuildProjectReferences=false.

The restore phase and the remaining delayed builds stay serialized as before.

Validation:

  • source activate.sh && dotnet msbuild src/BuildAfterTargetingPack/BuildAfterTargetingPack.csproj -getItem:_DelayedBuildPrerequisite -getItem:_RemainingDelayedBuild — passed; evaluated one prerequisite and 19 remaining projects, with the transport project excluded from the remaining set.
  • The exact Windows-only build was not run locally on macOS. The changed dependency ordering was validated at MSBuild evaluation time.

Related to internal CI build 3107295; no public issue.

Copilot AI balanced review requested due to automatic review settings October 16, 2026 21:57
@github-actions github-actions Bot added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Oct 16, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Hey @dotnet/aspnet-build, looks like this PR is something you want to take a look at.

Copilot AI 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.

🔵 Needs a closer look

Evaluation confirms project grouping, but execution of the affected Windows build remains unverified.

No open issues 🎉

What changed in this PR

Orders delayed builds so shipping assemblies are built before generated trimming and NativeAOT projects publish.

Changes:

  • Builds the transport project first to establish shipping assembly outputs.
  • Excludes that prerequisite from subsequent builds while preserving serialized restore and build execution.
File Description
src/​BuildAfterTargetingPack/​BuildAfterTargetingPack.csproj Separates the shipping-assembly prerequisite from remaining delayed builds.

Review effort: Balanced

@wtgodbe
wtgodbe merged commit aa06fff into dotnet:main Oct 16, 2026
28 checks passed
@wtgodbe
wtgodbe temporarily deployed to copilot-pat-pool October 16, 2026 23:15 — with GitHub Actions Inactive
@wtgodbe
wtgodbe temporarily deployed to copilot-pat-pool October 16, 2026 23:15 — with GitHub Actions Inactive
@wtgodbe
wtgodbe temporarily deployed to copilot-pat-pool October 16, 2026 23:16 — with GitHub Actions Inactive
@wtgodbe
wtgodbe temporarily deployed to copilot-pat-pool October 16, 2026 23:17 — with GitHub Actions Inactive
@wtgodbe
wtgodbe temporarily deployed to copilot-pat-pool October 16, 2026 23:18 — with GitHub Actions Inactive
@wtgodbe
wtgodbe temporarily deployed to copilot-pat-pool October 16, 2026 23:19 — with GitHub Actions Inactive
@github-actions

Copy link
Copy Markdown
Contributor

✅ No documentation PR was created.

Confidence that documentation is needed: 2%

No docs needed: build/CI-only change ordering delayed builds in the repo's own build. Confident, not an insufficient-evidence case.

Documentation surfaces considered

  • Conceptual article: Not required — Only src/BuildAfterTargetingPack/BuildAfterTargetingPack.csproj build ordering changed; no public API, template, or config change.
  • Migration guidance: Not required — No upgrade action for users; internal repo build change.
  • Breaking change: Not required — No compatibility impact.

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 692de38d Deployed Oct 16, 2026 by wtgodbe via conclusion #61
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants