Open web project on debug #4414
Unanswered
Matthew Paul (mip1983)
asked this question in
Q&A
Replies: 3 comments
No there's no support for this. |
0 replies
0 replies
|
I've worked around this by just launching the browser in the AppHost.cs. For my particular use case, this works well: // projects registered above
var app = builder.Build();
app.Services
.GetRequiredService<IHostApplicationLifetime>().ApplicationStarted
.Register(() => Process.Start(
new ProcessStartInfo("https://some-url-here/") { UseShellExecute = true }
));
app.Run(); |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
When you run your aspire project from VS2022 with the AppHost as startup project it launches the Aspire dashboard in a browser as you'd want/expect. Is there any way to tell it to also launch one (or more) of the AppHosts hosted web projects in another tab (or window) at the same time automatically? Like multiple startup projects but running them as hosted by aspire.
I have two aspire projects, one is Blazor server, and the other is mixed Blazor web (server and wasm), and the wasm project does automatically open it's own browser for the web project, I think because it needs some special instance of the browser to attach debugging to the client side stuff. Similar behavior on the server project would be nice to enable if possible.
All reactions