Ionic 2.3.2 [CordovaApp.Windows10.jsproj(61,5):错误MSB4019]

时间:2017-07-03 18:52:02

标签: visual-studio cordova ionic-framework ionic2

当我运行离子构建窗口时,我得到以下错误

Building project: D:\app-Name\platforms\windows\CordovaApp.Windows10.jsproj

    Configuration : debug
    Platform      : x64

D:\app-Name\platforms\windows\CordovaApp.Windows10.jsproj(61,5): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Microsoft.VisualStudio..Default.prop" was not found. 
Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe: Command failed with exit code 1

我的系统信息[离子信息]

Cordova CLI: 7.0.1
Ionic Framework Version: 2.0.0-beta.10
Ionic CLI Version: 2.2.3
Ionic App Lib Version: 2.2.1
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v6.10.2
Xcode version: Not installed

我已经安装了Visual Studio社区版2017以及特定的2015和2017版本工具,包括SDK。

在config.xml中添加了最小目标首选项。即使在我无法建立它的一切之后。

请帮我解决此问题。

1 个答案:

答案 0 :(得分:0)

科尔多瓦似乎正在寻找Visual Studio 2015的MSBuild工具版本14。

这些发行说明建议将环境变量MSBUILDDIR设置为正确的MSBuild目录installed on your system

  1. 安装MSBuild工具2015:https://www.microsoft.com/en-za/download/details.aspx?id=48159
  2. 将环境变量MSBUILDDIR设置为C:\Program Files (x86)\MSBuild\14.0\Bin