dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.26k stars 4.73k forks source link

Expose WASM Hot Reload capabilities via `.props` file for consumption by `dotnet watch` #97462

Open MackinnonBuck opened 9 months ago

MackinnonBuck commented 9 months ago

The dotnet watch tool currently has a hard-coded set of default WASM hot reload capabilities so that it can initialize before the WebAssembly runtime starts up.

We should consider having the runtime provide these capabilities, possibly by including them in a .props file so that they can get picked up by dotnet watch.

Context: https://github.com/dotnet/aspnetcore/issues/51507.

ghost commented 9 months ago

Tagging subscribers to 'arch-wasm': @lewing See info in area-owners.md if you want to be subscribed.

Issue Details
The `dotnet watch` tool currently has a [hard-coded](https://github.com/dotnet/sdk/blob/6f9c74184babc859b096f445edcc3c2f1a52d5bb/src/BuiltInTools/dotnet-watch/HotReload/BlazorWebAssemblyDeltaApplier.cs#L16-L18) set of default WASM hot reload capabilities so that it can initialize before the WebAssembly runtime starts up. We should consider having the runtime provide these capabilities, possibly by including them in a `.props` file so that they can get picked up by `dotnet watch`. Context: https://github.com/dotnet/aspnetcore/issues/51507.
Author: MackinnonBuck
Assignees: -
Labels: `arch-wasm`
Milestone: -
MackinnonBuck commented 9 months ago

cc @tmat