I'm trying to "get started" with Blazorfollowing Microsoft's guidelines,
I've installed the .NET Core 3.0 Preview SDK as indicated, but then I try to run the command
dotnet new -i Microsoft.AspNetCore.Blazor.Templates::3.0.0-preview5-19227-01
respectively from terminal and powershell both as admin and not, getting this error:
Did you mean to run dotnet SDK commands? Please install dotnet SDK from:...
I proceeded anyway installing Visual Studio Preview (with Blazor Extension)
to be able to run the command form the Visual studio terminal, but I'm simply getting this error:
Command "dotnet" is not valid.
Looks like doesn't recognize the installed SDK (3.0 or previous),
any idea how can I solve the issue? thanks in advance
答案 0 :(得分:1)
我想如果路径中有多个相同的可执行文件,那么它将无法解析您要调用的那个文件。
尝试在命令行中使用.NET Core 3.0 SDK dotnet.exe的完整路径,例如
"C:\Program Files\dotnet\dotnet.exe" new -i Microsoft.AspNetCore.Blazor.Templates::3.0.0-preview5-19227-01
(如果不确定哪个版本,可以使用dotnet --version
查找exe版本)