visual studio 2017 spa templates vue js missing

时间:2017-12-18 04:53:01

标签: visual-studio vuejs2 asp.net-core-2.0 typescript-typings spa-template

I can see that lot of examples of Spa templates dotnet new --install Microsoft.AspNetCore.SpaTemplates::*

does have VueJs but when I install it I can't seem to see it on the list even with -l parameter.

does anyone know what is up with this ? or alternatively a full working SPA seed project? almost every project I tried, has some issues.

Thanks

Nero

1 个答案:

答案 0 :(得分:2)

运行安装时是否收到错误消息?

我遇到了同样的问题,结果证明它是一个无效的NuGet包源。如果安装程序无法访问您的任何软件包源,则安装程序无法获取最新模板。

当我跑PS C:\Users\me> dotnet new --install Microsoft.AspNetCore.SpaTemplates::*

我会在终端

中看到错误
Restoring packages for C:\Users\wacht\.templateengine\dotnetcli\v2.1.4\scratch\restore.csproj...
C:\Program Files\dotnet\sdk\2.1.4\NuGet.targets(103,5): error : The local source '\\privateserver\NuGet' doesn't exist. [C:\Users\wacht\.templateengine\dotnetcli\v2.1.4\scratch\restore.csproj]

删除无法访问的软件包源后,已安装更新的本地SPA模板并安装了Vue模板。