blazor-workshop icon indicating copy to clipboard operation
blazor-workshop copied to clipboard

Cannot run under linux

Open lonix1 opened this issue 5 years ago • 2 comments

Environment

  • Linux (ubuntu 20.04), latest dotnet SDK (3.1.300)
  • I can successfully run (server or client) projects created via dotnet new ...

Repro

  • I cloned the repo
  • I want to run the first tutorial: "Components and layout"

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'.

lonix1 avatar Jun 09 '20 05:06 lonix1

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

matt-goldman avatar Nov 13 '20 06:11 matt-goldman

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

lohithgn avatar Apr 16 '21 10:04 lohithgn