2017-05-04 44 views
0

我试图用史蒂夫Sanderon的“ASP.NET核心+角2模板用于Visual Studio”ASP.NET核心模板包-wont创建项目

基本上它使用.NET的核心和一些其他的东西成立一个用于Angular2开发的Visual Studio项目。

当我尝试创建使用“”模板创建一个新的项目,我得到的错误

The imported project "c:\program files(x86)\msbuild\microsoft\visualstudio\v14.0\dotnet\microstoft.dotnet.props" was not found. Confirm that the path in the <Import> declarration is correct and that the file exists on disk. C:\users\****\onedrive\documents\visual studio 2015\projects\angular2application\angular2application\angular2Application.xproj" 

我不得不手动键入这,我已经检查了它,但不能保证没有错字。 ..但你明白了。

如果按照第一条路径,有没有... \ v14.0 \ DOTNET文件夹

第二个路径是VS想把项目,路径存在高达​​.. \的Visual Studio 2015年\ projects \ 但它不会创建项目文件夹。 如果我问VS创建一个解决方案文件夹,它确实创建。

我已经安装了以下

VS 2015年更新3

.NET 1.1的核心 - I did run through the initialization script found here

打字稿2.03

节点v6.10.1

出于某种原因,一些文件夹没有安装。 希望有人遇到这个问题,或有一些想法...

+3

可能.net core 1.1与vs2015不兼容,您应该使用vs2017 – Alexan

+1

如果您使用的是.NET Core 1.1,则需要使用VS 2017或VS代码 – Set

回答

0

最终我无法得到这个工作。

我安装vs2017社区版

I then followed this article to install the templates

注意,你必须关闭VS的所有实例使其正常工作。我安装了一次,没有得到正确的结果。我关闭了所有东西,再次尝试,并像冠军一样工作。

相关问题