ASP.NET Core client side Blazor applications can't be run in VSCode
See original GitHub issueThis was originally reported over in https://github.com/aspnet/AspNetCore/issues/9451 and it seems that the dialog to add build assets to the project can’t detect Blazor client side applications because they’re not true runnable applications on their own.
To fix this there’s two steps:
- Make runnable project detection understand Blazor client side applications
- Update the run .net core console app to utilize
dotnet run --no-build
instead ofdotnet *.dll
. The distinction about usingdotnet run
enables the Blazor project to hijack the run process and properly boot a runnable application.
/cc @danroth27
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:8 (8 by maintainers)
Top Results From Across the Web
What if I am unable to run Blazor apps in Visual Studio Code?
There are multiple reasons the Blazor application wouldn't run in Visual Studio Code. ... Object of type 'Blazor.NetCore.Client.Pages.
Read more >Debug ASP.NET Core Blazor WebAssembly - Microsoft Learn
Open the standalone Blazor WebAssembly app in VS Code. · Start debugging using the F5 keyboard shortcut or the menu command. · The...
Read more >Blazor Server CRUD App Using Visual Studio Code
A new blazor server web project is created. Now we need to open the project folder in vscode. In vscode explorer click Open...
Read more >Integrating Blazor into Existing ASP.NET Core Applications
If you want to add server-side Blazor to your existing ASP.NET ... where your C# code is downloaded to the browser and runs...
Read more >Let's Learn Blazor: Building your first Client-side ... - Medium
Build a Blazor WebAssembly Application which runs natively in the browser ... What you CAN'T do ... ASP.NET Core Blazor dependency injection ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
dotnet run
will launch the target in a child process. The .NET Debugging APIs have no support for child process debugging.Here are my suggestions:
dotnet watch
task.