Skip to content

[release/11.0.1xx] Keep Web SDK browser tools local to their project - #57153

Merged
akoeplinger merged 1 commit into
release/11.0.1xxfrom
javiercn/fix-web-sdk-referneces
Nov 17, 2026
Merged

akoeplinger merged 1 commit into
release/11.0.1xxfrom
javiercn/fix-web-sdk-referneces

Conversation

@javiercn

Copy link
Copy Markdown
Member

[release/11.0.1xx] Keep Web SDK browser tools local to their project

Fix Debug builds when a Web SDK app directly references another Web SDK app.

Description

Keep each app's Hot Reload browser assets local when one Microsoft.NET.Sdk.Web application directly references another.

Fixes #56656

Customer Impact

Debug builds can fail for directly referenced Web SDK applications.

Regression?

  • Yes
  • No

Introduced in .NET 11 RC2; the issue reports that RC1 worked.

Risk

  • High
  • Medium
  • Low

Narrow filtering of Hot Reload browser assets during reference export. Normal static assets and hosted WebAssembly asset propagation are preserved.

Verification

  • Manual (required)
  • Automated

Manual: SDK 11 API-to-API builds passed with the servicing fix, including ordinary and ordering-only references, incremental builds, and no-op rebuilds.

Automated: regression tests and the full browser-tools integration class passed on the main implementation.

Packaging changes reviewed?

  • Yes
  • No
  • N/A

No package-layout or dependency changes.


When servicing release/2.3

  • Make necessary changes in eng/PatchConfig.props

N/A - this PR targets release/11.0.1xx.

Port a235c519e0cd3aab6d58444445ef945fd852b0b2 and b5516f595ed46536997de7e2ff4746eefe55e90f to release/11.0.1xx. Filter export-only reference candidates without modifying cached manifests or local endpoints. Preserve servicing hot-reload enablement and import timing.

Cover plain Web SDK API app-to-app references, library and ordering-only references, incremental initializer propagation, and hosted WebAssembly browser tools.

Fixes #56656

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@javiercn
javiercn requested review from a team, lbussell and mthalman as code owners November 16, 2026 18:37
Copilot AI balanced review requested due to automatic review settings November 16, 2026 18:37
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 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.

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.

🟢 Approval recommended

No active review issues are recorded for the change to keep Hot Reload browser tools local to each Web SDK project.

No open issues 🎉

What changed in this PR

This servicing fix addresses #56656, a Debug-build regression when one Web SDK project references another. It keeps each project’s Hot Reload browser tools local while preserving ordinary static assets and hosted WebAssembly asset propagation.

Changes:

  • Separates reference-export candidates from cached build assets and filters out project-local browser tools.
  • Adds regression coverage for library, executable, and ordering-only references, including incremental builds and endpoint checks.
  • Documents the browser-tools export behavior.
File Description
test/​Microsoft.NET.Sdk.StaticWebAssets.Tests/​HotReloadBrowserToolsIntegrationTest.cs Adds project-reference regression tests and strengthens hosted WebAssembly endpoint assertions.
src/​StaticWebAssetsSdk/​Targets/​Microsoft.NET.Sdk.StaticWebAssets.References.targets Introduces a separate asset candidate list for reference exports.
src/​StaticWebAssetsSdk/​Targets/​Microsoft.NET.Sdk.StaticWebAssets.HotReload.targets Filters local Web SDK browser tools from reference exports.
src/​StaticWebAssetsSdk/​AGENTS.md Documents local asset ownership and preserved WebAssembly propagation.

Review effort: Balanced

@wtgodbe

wtgodbe commented Nov 16, 2026

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).
2 pipeline(s) were filtered out due to trigger conditions.

@akoeplinger
akoeplinger merged commit c36adf3 into release/11.0.1xx Nov 17, 2026
35 of 39 checks passed
@akoeplinger
akoeplinger deleted the javiercn/fix-web-sdk-referneces branch November 17, 2026 10:41

This branch had an error being deployed

1 failed deployment
copilot-pat-pool — c0d494c1 Deployed Nov 17, 2026 by akoeplinger via pre_activation #14271
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants