aspire: Blazor WASM not working with Latest Aspire Preview 3
#296 mentioned this would be fixed in Preview 2. I’m on Preview 3 and still seeing this error.
There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'browser-wasm'
Minimal Repo: BlazorApp1.zip
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 15 (7 by maintainers)
I’m on the daily bits:
Ah I see, lets treat this one as a dupe of https://github.com/dotnet/aspire/issues/1536. There’s much better information in there.
Still getting this error with current latest - Aspire GA.
The Problem is with the Service defaults project, it uses
<FrameworkReference Include="Microsoft.AspNetCore.App" />, this pulls inMicrosoft.AspNetCore.Appwhich is not supported in webassembly.You get things to build/run by removing the Service Defaults project reference from the web assembly app, but then you lose all the nice telemetry stuff (and service discovery?).
Blazor standalone is not supported. We might be able to make it work for development but not deployment (at least for the initial release).