Skip to content

Add properties read by Hot Reload - #86200

Merged
tmat merged 6 commits into
dotnet:mainfrom
tmat:hot-reload-properties
Oct 29, 2026
Merged

tmat merged 6 commits into
dotnet:mainfrom
tmat:hot-reload-properties

Conversation

@tmat

@tmat tmat commented Oct 24, 2026 •

Copy link
Copy Markdown
Member
Microsoft Reviewers: Open in CodeFlow

Copilot AI balanced review requested due to automatic review settings October 24, 2026 02:29
@azure-pipelines

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

🟡 Changes recommended

Browser asset prefixes can be corrupted when caches relocate, and two existing tests still assert the previous cache version.

2 open issues
What changed in this PR

This PR extends Roslyn’s project-data cache with properties read by Hot Reload.

Changes:

  • Adds 16 optional properties and their generated MSBuild mappings.
  • Bumps the cache format from 2.2 to 2.3 and updates the compatibility baseline.
  • Adds property round-trip coverage and a smoke test for semicolon-delimited WebAssembly capabilities.
File Description
src/​ProjectData/​Microsoft.NET.ProjectData.Tasks/​build/​Microsoft.NET.ProjectData.Schema.props Maps the new properties into project-data output.
src/​ProjectData/​Microsoft.NET.ProjectData.Tasks.Tests/​TargetsFileSmokeTests.cs Tests persistence of WebAssembly capabilities through MSBuild.
src/​ProjectData/​Microsoft.NET.ProjectData.Tasks.Tests/​LsCacheRoundTripEquivalenceTests.cs Adds round-trip cases for all new properties.
src/​ProjectData/​Microsoft.NET.ProjectData.Tasks.Tests/​ForwardCompatTests.cs Updates the minor-version and emitted-field baselines.
src/​ProjectData/​Microsoft.NET.ProjectData.Generators/​project-data-schema.json Defines Hot Reload properties and cache version 2.3.

Review effort: Balanced

@tmat
tmat force-pushed the hot-reload-properties branch from 66db3d8 to e53f8c2 Compare October 26, 2026 22:06
Copilot AI balanced review requested due to automatic review settings October 26, 2026 22:06

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 block the changes to persist Hot Reload project properties in the cache.

2 open issues

Review effort: Balanced

@tmat
tmat force-pushed the hot-reload-properties branch from e53f8c2 to 4aa8f7d Compare October 28, 2026 18:37
@tmat
tmat requested a review from a team as a code owner October 28, 2026 18:37
Copilot AI balanced review requested due to automatic review settings October 28, 2026 18:37

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.

🟡 Changes recommended

The proxy-lifetime fix lacks a regression test using disposable doubles to verify subscriptions and registrations survive initialization and are released before their proxies during service disposal.

2 open issues
1 resolved since last review

Review effort: Balanced

tmat added 2 commits October 28, 2026 12:18
Instead of storing Configuration, HotReloadBrowserToolsAssetPrefix, StaticWebAssetsEnabled and JSModulesEnabled calculate HotReloadBrowserToolsEnabled property that's stored in project data.
Copilot AI balanced review requested due to automatic review settings October 28, 2026 20:01

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 cache and brokered-service updates.

1 open issue
1 resolved since last review

Review effort: Balanced

@tmat

tmat commented Oct 28, 2026

Copy link
Copy Markdown
Member Author

We can remove the calculation of the property once we move to .NET SDK 11.0.2xx, provided that this is also merged: dotnet/sdk#56818

@tmat
tmat enabled auto-merge (squash) October 29, 2026 15:16

@jasonmalinowski jasonmalinowski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving the changes made since the previous approvals.

@tmat
tmat disabled auto-merge October 29, 2026 17:37
@tmat
tmat merged commit d44bbeb into dotnet:main Oct 29, 2026
26 checks passed
@tmat
tmat deleted the hot-reload-properties branch October 29, 2026 17:37
@dotnet-policy-service dotnet-policy-service Bot added this to the Next milestone Oct 29, 2026
@akhera99 akhera99 modified the milestones: Next, 18.14 Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants