我安装了适用于 Windows 的 SDK 5.0(就像在该视频https://youtu.be/a6WPeTG1QEk中一样),它实际上存在于 C:\Programs Files\dotnet 下,但是当我在 cmd 中键入 dotnet new consol -o myApp 时,它给我以下错误:
> PS D:\Programme\VSCodeNetCoreTest> dotnet new console
Could not execute because the application was not found or a compatible .NET SDK is not installed.
Possible reasons for this include:
* You intended to execute a .NET program:
The application 'new' does not exist.
* You intended to execute a .NET SDK command:
It was not possible to find any installed .NET SDKs.
Install …Run Code Online (Sandbox Code Playgroud)