I do follow this guid.
=> https://blazor.net/docs/get-started.html
At step 4 > Press Ctrl-F5 to run the app without the debugger. Running with the debugger (F5) isn't supported at this time.
When i do it , then dialog pop.
When try "dotnet run"
result is
How can i do for run blazor?
Looks like your using the ASP.NET Core hosted Blazor template. When hosting in ASP.NET Core you actually need to run the Server project instead of the Client project. It looks like your solution is setup to run the Client project as the Startup project. You should switch the startup project to be the Server project.
The same thing goes for running the app form the command-line. Instead of running dotnet run
from the Client project directory, you should run it from the Server project directory.
I hope that helps!
THANK YOU DAN!
I experienced the same issue but turned out that I didn't add reference to Microsoft.AspNetCore.Blazor.DevServer
Most helpful comment
Looks like your using the ASP.NET Core hosted Blazor template. When hosting in ASP.NET Core you actually need to run the Server project instead of the Client project. It looks like your solution is setup to run the Client project as the Startup project. You should switch the startup project to be the Server project.
The same thing goes for running the app form the command-line. Instead of running
dotnet run
from the Client project directory, you should run it from the Server project directory.I hope that helps!