簡體   English   中英

Cordova Build Windows 10-Visual Studio 2017

[英]Cordova Build Windows 10 - Visual Studio 2017

因此,我試圖通過設置為調試和Windows-x64的Visual Studio 2017使用Cordova構建Windows 10應用程序。

錯誤:

Error       Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\msbuild.exe: Command failed with exit code 1   SprocketMobilev2        1   

從輸出:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\VisualStudio\v15.0\AppxPackage\Microsoft.AppXPackage.Targets(5043,5): warning APPX1901: The DefaultLanguage property is either missing from the project file or does not have a value. The fallback language is set to the Visual Studio language: en-US. [C:\_Development\SprocketII\SprocketMobilev2\43\SprocketMobilev2\plugins\cordova-plugin-ms-adal\src\windows\lib\adal3\ADAL3WinMDProxy.csproj]
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\VisualStudio\v15.0\AppxPackage\Microsoft.AppXPackage.Targets(993,5): error APPX1639: File 'MakeAppx.exe' not found. See http://go.microsoft.com/fwlink/?LinkID=798187 for more information. [C:\_Development\SprocketII\SprocketMobilev2\43\SprocketMobilev2\platforms\windows\CordovaApp.Windows10.jsproj]
Command finished with error code 1: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\msbuild.exe C:\_Development\SprocketII\SprocketMobilev2\43\SprocketMobilev2\platforms\windows\CordovaApp.Windows10.jsproj,/clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal,/nologo,/p:Configuration=debug,/p:Platform=x64,/p:AppxBundle=Never
1>MSBUILD : cordova-build error : Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\msbuild.exe: Command failed with exit code 1

當我嘗試從cmd行構建(以admin身份運行)時,我得到了:

>cordova build windows -- --debug --archs="x64"
Building project: C:\_Development\SprocketII\SprocketMobilev2\43\SprocketMobilev2\platforms\windows\CordovaApp.Windows10.jsproj
    Configuration : debug
    Platform      : x64
Patching 10 in prebuild event...
Injected base.js reference to the /www/index.html
Removing /( *)(<script\s+(?:type="text\/javascript"\s+)?src="\/\/Microsoft.WinJS.2.0\/js\/base.js">\s*<\/script>)(\s*)/ from /www/index.html
Removing /( *)(<script\s+(?:type="text\/javascript"\s+)?src="\/\/Microsoft.Phone.WinJS.2.1\/js\/base.js">\s*<\/script
>)(\s*)/ from /www/index.html ADAL3WinMDProxy -> C:\_Development\SprocketII\SprocketMobilev2\43\SprocketMobilev2\plugins\cordova-plugin-ms-adal\src
\windows\lib\adal3\bin\x64\Debug\ADAL3WinMDProxy.winmd
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(4525,5): warning APPX1901: The DefaultLanguage property is either missing from the project file or does not have a value. The fallback language is set to the Visual Studio language: en-US. [C:\_Development\SprocketII\SprocketMobilev2\43\SprocketMobilev2\plugins\cordova-plugin-ms-adal\src\windows\lib\adal3\ADAL3WinMDProxy.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(931,5): error APP
X1639: File 'MakeAppx.exe' not found. See http://go.microsoft.com/fwlink/?LinkID=798187 for more information. [C:\_Development\SprocketII\SprocketMobilev2\43\SprocketMobilev2\platforms\windows\CordovaApp.Windows10.jsproj]
Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe: Command failed with exit code 1

刪除platform / windows文件夾並重建項目。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM