dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.5k stars 10.04k forks source link

Unable to run your project. the "RunCommand" property is not defined. #16102

Closed uopeydel closed 5 years ago

uopeydel commented 6 years ago

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?

danroth27 commented 6 years ago

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!

McHeff commented 5 years ago

THANK YOU DAN!

yomiorcas commented 5 years ago

I experienced the same issue but turned out that I didn't add reference to Microsoft.AspNetCore.Blazor.DevServer