首先自行新建一个目录。
输入dotnet new vue --search可见如下:

dotnet new --install Microsoft.AspNetCore.SpaTemplates

dotnet new vue
按下回车确定还原

dotnet run

这里提示我少了Microsoft.NETCore.App2.0.0。输入这段网址
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=2.0.0&arch=x64&rid=win10-x64
安装一下。
再输入dotnet run
运行成功。


网友评论