dotnet-presentations / blazor-workshop

Blazor workshop
https://aka.ms/blazorworkshop
MIT License
3.51k stars 1.56k forks source link

Cannot run under linux #276

Open lonix1 opened 4 years ago

lonix1 commented 4 years ago

Environment

Repro

I tried:

$ cd src
$ dotnet run --project BlazingPizza.Client

and:

$ cd save-points/01-Components-and-layout
$ dotnet run --project BlazingPizza.Client

and:

$ cd save-points/01-Components-and-layout/BlazingPizza.Client
$ dotnet run

Error

In all cases:

Unable to run your project. Ensure you have a runnable project type and ensure 'dotnet run' supports this project. A runnable project should target a runnable TFM (for instance, netcoreapp2.0) and have OutputType 'Exe'. The current OutputType is 'Exe'.

matt-goldman commented 4 years ago

Tutorial/docs say to run the Server project as startup project, not the Client.

The client project doesn't seem to have a startup.cs, so not sure whether you'll be able to run this.

FYI I'm running the server project under Linux with no problems but ironically can't run on windows

lohithgn commented 3 years ago

@matt-goldman how are you running the Server project on windows ? Are you using VS or VS Code ? What steps are you doing ?