[Blazor] Remove HotReload built-into Blazor WebAssembly #62777
+0
−211
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Do not merge before dotnet/sdk#49800
This PR removes the built-in HotReload functionality from Blazor WebAssembly as requested in the issue.
Changes Made
Removed Files
src/Components/WebAssembly/WebAssembly/src/HotReload/WebAssemblyHotReload.cs
- The main HotReload implementation classsrc/Components/WebAssembly/WebAssembly/src/HotReload/
- Empty directory after file removalUpdated Files
PublicAPI.Shipped.txt - Removed 3 HotReload-related public API entries:
Microsoft.AspNetCore.Components.WebAssembly.HotReload.WebAssemblyHotReload
ApplyHotReloadDelta
methodGetApplyUpdateCapabilities
methodPublicAPI.Unshipped.txt - Removed 19 HotReload-related entries:
WebAssemblyHotReload.Delta
struct and all its propertiesWebAssemblyHotReload.LogEntry
struct and all its propertiesApplyHotReloadDeltas
methodBoot.WebAssembly.Common.ts - Removed JavaScript interop methods:
applyHotReload
(obsolete method)applyHotReloadDeltas
getApplyUpdateCapabilities
GlobalExports.ts - Removed TypeScript interface definitions for the removed methods
WebAssemblyHost.cs - Removed:
using Microsoft.AspNetCore.Components.WebAssembly.HotReload;
using System.Reflection.Metadata;
(now unused)Microsoft.AspNetCore.Components.WebAssembly.props - Removed
WebAssemblyHotReloadCapabilities
propertyImpact
This is a clean removal of the self-contained WebAssembly HotReload functionality without affecting:
Testing
Fixes #62776.
Fixes #62371.
Contributes to #61272
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.