MS生成错误命令失败,退出代码为1,Cordova Visual Studio 2017
我正在Visual Studio 2017中使用cordova构建一个应用程序。 到目前为止,我只在Android上测试过它,它几乎已经准备好了。 我想在Windows10Mobile上开始测试,但在编译Windows项目时遇到了这个错误(任何平台:arm、x64、x86,都会出现相同的错误) 这是我得到的错误:MS生成错误命令失败,退出代码为1,Cordova Visual Studio 2017,cordova,uwp,visual-studio-2017,visual-studio-cordova,Cordova,Uwp,Visual Studio 2017,Visual Studio Cordova,我正在Visual Studio 2017中使用cordova构建一个应用程序。 到目前为止,我只在Android上测试过它,它几乎已经准备好了。 我想在Windows10Mobile上开始测试,但在编译Windows项目时遇到了这个错误(任何平台:arm、x64、x86,都会出现相同的错误) 这是我得到的错误: ------ Building platform: windows ------ Build configuration options: --debug -- --win --ar
------ Building platform: windows
------ Build configuration options: --debug -- --win --archs x86
You have been opted out of telemetry. To change this, run: cordova telemetry on.
[VSTAC_VERBOSE]No scripts found for hook "before_compile".
[VSTAC_VERBOSE]Reading build config file: C:\Users\lucaz\Documents\Visual Studio 2017\Projects\Notebet\Notebet\build.json
[VSTAC_VERBOSE]Running command: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\msbuild.exe" -version -nologo
[VSTAC_VERBOSE]Command finished with error code 0: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\msbuild.exe -version,-nologo
Building project: C:\Users\lucaz\Documents\Visual Studio 2017\Projects\Notebet\Notebet\platforms\windows\CordovaApp.Windows10.jsproj
Configuration : debug
Platform : x86
[VSTAC_VERBOSE]Running command: C:\WINDOWS\system32\reg.exe query "HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows" /s /v InstallationFolder /reg:32
[VSTAC_VERBOSE]Command finished with error code 0: C:\WINDOWS\system32\reg.exe query,HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows,/s,/v,InstallationFolder,/reg:32
[VSTAC_VERBOSE]Running command: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\msbuild.exe" "C:\Users\lucaz\Documents\Visual Studio 2017\Projects\Notebet\Notebet\platforms\windows\CordovaApp.Windows10.jsproj" /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo /p:Configuration=debug /p:Platform=x86
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\VisualStudio\v15.0\JavaScript\Microsoft.VisualStudio.JavaScript.UAP.targets(82,3): error : "10.0.15063.0" non � un valore supportato per TargetPlatformVersion. Modificarlo nella pagina delle propriet� del progetto. [C:\Users\lucaz\Documents\Visual Studio 2017\Projects\Notebet\Notebet\platforms\windows\CordovaApp.Windows10.jsproj]
[VSTAC_VERBOSE]Command finished with error code 1: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\msbuild.exe C:\Users\lucaz\Documents\Visual Studio 2017\Projects\Notebet\Notebet\platforms\windows\CordovaApp.Windows10.jsproj,/clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal,/nologo,/p:Configuration=debug,/p:Platform=x86
1> MSBUILD : cordova-build error : Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\msbuild.exe: Command failed with exit code 1
1> Done executing task "VsTac" -- FAILED.
1>Done building target "BuildMDA" in project "Notebet.jsproj" -- FAILED.
1>
1>Done building project "Notebet.jsproj" -- FAILED.
1>
1>Project Performance Summary:
1> 3983 ms C:\Users\lucaz\Documents\Visual Studio 2017\Projects\Notebet\Notebet\Notebet.jsproj 1 calls
1>
1>Target Performance Summary:
1> 0 ms BuildOnlySettings 1 calls
1> 0 ms AfterBuild 1 calls
1> 0 ms BeforeBuild 1 calls
1> 0 ms CheckForIPACancel 1 calls
1> 0 ms CoreBuild 1 calls
1> 0 ms _CheckForInvalidConfigurationAndPlatform 1 calls
1> 0 ms CompileTypeScript 1 calls
1> 3 ms PreComputeCompileTypeScript 1 calls
1> 730 ms EnsureNodeJsRequirementsAreAtCorrectVersion 1 calls
1> 3244 ms BuildMDA 1 calls
1>
1>Task Performance Summary:
1> 0 ms Message 2 calls
1> 4 ms VsTsc 2 calls
1> 8 ms CreateBuildInfoMetadata 1 calls
1> 729 ms MdaVerifySetup 1 calls
1> 3235 ms VsTac 1 calls
1>
1>Build FAILED.
当它说:“错误:”10.0.15063.0“非� 根据TARGETPLATFORVERSION.Modificarlo nella pagina delle propriet的规定,为每个目标平台提供价格支持� 德尔普格托。”
它是意大利语,尽管我有英语的visual studio(不知道为什么),它的意思是:“错误:TargetPlatformVersion不支持10.0.15063.0”值。请在项目的属性页中更改它。”
到目前为止,我检查了该文档,并将值从10.0.10240.0更改为10.0.15063.0,因为这是我在pc上安装的W10 sdk的版本,我认为这可能是问题所在
检查我的VisualStudio安装程序时,它说我有用于UWP的Windows10SDK(10.0.15063.0)
它不起作用,在谷歌搜索时,我发现有人在为windows编译cordova项目时遇到问题,但我没有找到任何人对我的错误负责
谢谢你的建议,我希望我已经提供了足够的信息,如果你需要更多,我会尽快提供 你能用一个空的空白项目试试吗?刚刚做了,我得到了同样的错误,但“10.0.10240.0”因为我没有改变它。空白项目构建很好。。。我也有同样的错误