Repository navigation
Add properties read by Hot Reload - #86200
Conversation
|
Azure Pipelines: Successfully started running 2 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
🟡 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
66db3d8 to
e53f8c2
Compare
e53f8c2 to
4aa8f7d
Compare
There was a problem hiding this comment.
🟡 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
Instead of storing Configuration, HotReloadBrowserToolsAssetPrefix, StaticWebAssetsEnabled and JSModulesEnabled calculate HotReloadBrowserToolsEnabled property that's stored in project data.
|
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 |
jasonmalinowski
left a comment
There was a problem hiding this comment.
Approving the changes made since the previous approvals.



Microsoft Reviewers: Open in CodeFlow