question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ASP.NET Core client side Blazor applications can't be run in VSCode

See original GitHub issue

This 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:

  1. Make runnable project detection understand Blazor client side applications
  2. Update the run .net core console app to utilize dotnet run --no-build instead of dotnet *.dll. The distinction about using dotnet run enables the Blazor project to hijack the run process and properly boot a runnable application.

/cc @danroth27

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:6
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
gregg-miskellycommented, Apr 30, 2019

dotnet run will launch the target in a child process. The .NET Debugging APIs have no support for child process debugging.

0reactions
gregg-miskellycommented, Apr 30, 2019

Here are my suggestions:

  1. Don’t do anything right now in terms of launch.json generation. We can leave this bug open to consider doing something someday for it.
  2. Update the documentation to point point at running the dotnet watch task.
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found