Skip to content

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

Open
javiercn wants to merge 1 commit into
release/11.0.1xxfrom
jacalvar-microsoft-web-sdk-servicing-fix
Open

javiercn wants to merge 1 commit into
release/11.0.1xxfrom
jacalvar-microsoft-web-sdk-servicing-fix

Conversation

@javiercn

@javiercn javiercn commented Nov 16, 2026 •

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:34
Copilot AI balanced review requested due to automatic review settings November 16, 2026 18:34
@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 remain for the Hot Reload browser-tool export changes.

No open issues 🎉

What changed in this PR

Addresses #56656, a Debug-build regression when one Web SDK project references another, by keeping each project's Hot Reload browser tools local during static web asset export.

Changes:

  • Separates reference-export candidates from cached build assets and filters out local server browser tools.
  • Adds regression coverage for library, executable, and ordering-only references, while checking ordinary asset propagation and hosted WebAssembly behavior.
  • Documents the export-filtering contract.
File Description
test/​Microsoft.NET.Sdk.StaticWebAssets.Tests/​HotReloadBrowserToolsIntegrationTest.cs Adds project-reference regression tests and strengthens hosted WebAssembly asset checks.
src/​StaticWebAssetsSdk/​Targets/​Microsoft.NET.Sdk.StaticWebAssets.References.targets Introduces an export-only candidate list without modifying cached assets.
src/​StaticWebAssetsSdk/​Targets/​Microsoft.NET.Sdk.StaticWebAssets.HotReload.targets Filters local server browser tools from reference exports.
src/​StaticWebAssetsSdk/​AGENTS.md Documents local browser-tool ownership and preserved WebAssembly propagation.

Review effort: Balanced

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.

3 participants