完整報錯如下:
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 a .NET SDK from:
https://aka.ms/dotnet-download
問題原因:program file和program file(x86)dotnet命令沖突了
將
c:/program file(x86)/dotnet/下的dotnet.exe刪除即可