【问题标题】:Building app from the cordova cli fails从 cordova cli 构建应用程序失败
【发布时间】:2017-11-21 21:44:14
【问题描述】:

这是我在我的机器上安装的:

  • 科尔多瓦 CLI:6.5.0
  • Ionic CLI 版本:2.1.17
  • Ionic 应用程序库版本:2.1.7
  • ios-deploy 版本:未安装
  • ios-sim 版本:未安装
  • 操作系统:Windows 10
  • 节点版本:v6.11.0
  • Xcode 版本:未安装

我正在使用 ionic 1.3.3 angular 1.5.3 和 cordova 6.5 编写应用程序

当我运行这个命令时: cordova 构建窗口 --appx=uap

我收到此错误:

平台的处理设置:windows 建设项目:

C:\Users\aubrey\Source\Repos\SelfServiceApp\SelfServiceApp\platforms\windows\CordovaApp.Windows10.jsproj
        Configuration : debug
        Platform      : anycpu
C:\Users\aubrey\Source\Repos\SelfServiceApp\SelfServiceApp\platforms\windows\CordovaApp.Windows10.jsproj(61,5): error M
SB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Microsoft.VisualStudio..Defau
lt.props" 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

我不确定为什么它不起作用。 android 构建工作。

【问题讨论】:

  • Microsoft.Default.Props 文件实际上并不存在。

标签: windows cordova ionic-framework windows-phone


【解决方案1】:

这可能是因为依赖插件的源文件没有设置为“内容”类型。使用 cordova-windows 版本 5.0.0 可能会解决您的错误。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-05-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-03-27
    相关资源
    最近更新 更多