Aspnetcore: Unable to run your project. the "RunCommand" property is not defined.

Created on 1 May 2018  路  3Comments  路  Source: dotnet/aspnetcore

I do follow this guid.
=> https://blazor.net/docs/get-started.html

image

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

image

How can i do for run blazor?

area-blazor

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!

All 3 comments

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

Was this page helpful?
0 / 5 - 0 ratings