After I created a new workspace on Visual studio code. I type dotnet run
in the powershell terminal. I get
couldn't find a project to run, ensure the project exist in "C:\Users\Desktop\Sample workspace" or pass the path to the project using --project.
we used dotnet run --project
, dotnet restore
, and dotnet new console
all this does is create hello world.
"couldn't find a project to run, ensure the project exist in C:\Users\Desktop\Sample workspace"
after I created a new workspace on Visual studio code. I type dotnet run
That is expected. VS Code does not create a new project for you automatically. You must run dotnet new <project type>
to create a project. After creating a project then dotnet run
should perform as expected.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.