首页 文章

从cordova cli构建应用程序失败

提问于
浏览
0

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

  • cordova CLI:6.5.0

  • Ionic CLI版本:2.1.17

  • Ionic App Lib版本:2.1.7

  • ios-deploy版本:未安装

  • ios-sim版:未安装

  • 操作系统:Windows 10

  • 节点版本:v6.11.0

  • Xcode版本:未安装

我正在编写一个带有离子1.3.3角1.5.3和cordova 6.5的应用程序

当我运行此命令时: cordova build windows --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构建工作 .

1 回答

  • 0

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

相关问题