You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enlisting a Blazor WebAssembly Standalone App in a .NET Aspire orchestration doesn't add the app to the AppHost #8486
I created a Blazor WebAssembly Standalone App in VS 17.13.5 targeting .NET 9 and selected the project template option to enlist it in a .NET Aspire orchestration. The generated solution contained the standalone Blazor WebAssembly app, the AppHost project, and the ServiceDefaults project. However, it didn't add the Blazor WebAssembly app to the app host. If I manually add the project reference to the Blazor WebAssembly project and add builder.AddProject<BlazorApp4>("client"); to the AppHost project, it seems to work fine.
Expected Behavior
I assume the Blazor WebAssembly app should be added to the AppHost so that when you run the AppHost project the Blazor WebAssembly app also starts and shows up in the Aspire dashboard.
Steps To Reproduce
Create a Blazor WebAssembly Standalone App project, selecting the option to Enlist in a .NET Aspire orchestration.
Exceptions (if any)
None
.NET Version info
9.0.201
Anything else?
Nope
Reacted by Bohirjon Akhmedov, Orlando Manuel Martinez Batista, Tomasz, Tony Bolton, Ryan Spain, Quinn Karpowitz, Ieuan Walker, Johannes-Max Sorge, mguinness, barruka and 1 more
Also looking for a way to do this, our Blazor WASM app calls a separate API (which is already in an aspire host) and it would be good to add the WASM app into the aspire host to see the full trace from app from API to the other parts of the backend.
Actually configuring the WASM app via aspire would have it's challenges (like rewriting the wwwroot\appsettings.json so the httpclient in the app can point to the aspire hosted API dynamically as @RichardReukemaOptimus states).
For me this is driven by wanting to see end to end tracing, logging and metric when I fire up the app.
Reacted by yarns123, Ryan Spain, Johannes-Max Sorge, Simon Geering and Bohirjon Akhmedov
Daniel Roth (@danroth27) Aspire is growing significantly, which is great for the project, but with no offense intended, perhaps more time should be dedicated to fixing certain bugs that have been acknowledged for several months, such as all those related to blazor-wasm:
Obviously, no one is asking that all ongoing development be stopped the moment a bug is detected to fix it, but most of the blazor-wasm related bugs have been reported for several months now, and we still don't have a solution... :(
Daniel Roth (@danroth27) I have an identity server project - IDP.csproj, api project - PublicAPI.csproj and a blazor wasm standlone app - Web.csproj. All running in .net10 in macOS. Here is my aspire setup
When I look at the dashboard, I see Web is always Finished state. When I look at the logs for Web, I see
Executing command 'resource-start'.
Successfully executed command 'resource-start'.
A fatal error was encountered. The library 'libhostpolicy.dylib' required to execute the application was not found in '/Users/xxxx/Projects/Personal/xxxx/Web/bin/Debug/net10.0/'.
Failed to run as a self-contained app.
- The application was run as a self-contained app because '/Users/xxxx/Projects/Personal/xxxx/Web/bin/Debug/net10.0/Web.runtimeconfig.json' did not specify a framework.
- If this should be a framework-dependent app, specify the appropriate framework in '/Users/xxxx/Projects/Personal/xxxx/Web/bin/Debug/net10.0/Web.runtimeconfig.json'.
Activity
DamianEdwards commentedon Apr 1, 2025
FYI Jake (@JakeRadMSFT)
orlandommb commentedon Apr 30, 2025
👀
webprofusion-chrisc commentedon May 16, 2025
Also looking for a way to do this, our Blazor WASM app calls a separate API (which is already in an aspire host) and it would be good to add the WASM app into the aspire host to see the full trace from app from API to the other parts of the backend.
Actually configuring the WASM app via aspire would have it's challenges (like rewriting the wwwroot\appsettings.json so the httpclient in the app can point to the aspire hosted API dynamically as @RichardReukemaOptimus states).
For me this is driven by wanting to see end to end tracing, logging and metric when I fire up the app.
Trapulo commentedon Sep 15, 2025
I experienced same problem with a new Blazor WASM standalone + Aspire apphost. Solved adding references to WASM project in AppHost app manually
DamianEdwards commentedon Sep 16, 2025
Brady Gaster (@bradygaster) Jake (@JakeRadMSFT) have you seen this one?
danroth27 commentedon Sep 16, 2025
This still seems to reproduce with VS2022:
barruka commentedon Nov 10, 2025
Daniel Roth (@danroth27) Aspire is growing significantly, which is great for the project, but with no offense intended, perhaps more time should be dedicated to fixing certain bugs that have been acknowledged for several months, such as all those related to blazor-wasm:
https://github.com/dotnet/aspire/issues?q=is%3Aissue%20state%3Aopen%20label%3Ablazor-wasm
Obviously, no one is asking that all ongoing development be stopped the moment a bug is detected to fix it, but most of the blazor-wasm related bugs have been reported for several months now, and we still don't have a solution... :(
danroth27 commentedon Nov 10, 2025
barruka Agreed! Improving the Blazor WebAssembly experience in .NET Aspire is an area that we're now actively investigating.
mguinness commentedon Dec 13, 2025
Daniel Roth (@danroth27) Have you seen issue #7524? It's a proposal for service discovery to work in a hosted Blazor WebAssembly project.
danroth27 commentedon Dec 17, 2025
Thanks for the pointer! Yup, we're exploring similar ideas in our own prototyping efforts.
fingers10 commentedon Feb 2, 2026
Daniel Roth (@danroth27) I have an identity server project -
IDP.csproj, api project -PublicAPI.csprojand a blazor wasm standlone app -Web.csproj. All running in.net10inmacOS. Here is my aspire setupWhen I look at the dashboard, I see
Webis alwaysFinishedstate. When I look at the logs forWeb, I seeI noticed a similar issue here - #13989
Please assist me on what I'm missing in my blazor wasm standalone app -
Web.csproj