[ https://issues.apache.org/jira/browse/CB-9565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14975148#comment-14975148 ]
ASF GitHub Bot commented on CB-9565: ------------------------------------ GitHub user purplecabbage opened a pull request: https://github.com/apache/cordova-windows/pull/130 CB-9565 with logic tweak Fixes a small oversight in the previous pull request. You can merge this pull request into a Git repository by running: $ git pull https://github.com/purplecabbage/cordova-windows CB-9565 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cordova-windows/pull/130.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #130 ---- commit 8ea8a719848e296e2cd54b2c5479160a9467046c Author: Rob Paveza <rob.pav...@microsoft.com> Date: 2015-09-22T17:39:19Z CB-9565: Build failure for Windows 10. This error is a result of using x64 Node and an incompatibility with x64 msbuild; the .NET Native compiler is x86 only (for where it can run). As a result, when msbuild-x64 tries to use it, it fails. This works around the issue by running x86 instead. commit c36052ba44c412b3927940361aae04dd7ddf124b Author: Jesse MacFadyen <purplecabb...@gmail.com> Date: 2015-10-26T21:34:19Z Merge branch 'CB-9565' of https://github.com/MSOpenTech/cordova-windows into CB-9565 commit bd87ef2ef95fcc54e669141db8572935a47eb403 Author: Jesse MacFadyen <purplecabb...@gmail.com> Date: 2015-10-26T21:37:31Z fix logic error ---- > Failure to build release package for Windows 10 project from CLI > ---------------------------------------------------------------- > > Key: CB-9565 > URL: https://issues.apache.org/jira/browse/CB-9565 > Project: Apache Cordova > Issue Type: Bug > Components: Windows > Affects Versions: 4.1.0 > Environment: Windows 10 > Reporter: vldmrrrr > Assignee: Rob Paveza > > Building release version of package for windows 10 for test application from > CLI under Windows 10 VS 2015 fails with error. Building debug version from > CLI works. Building release version from VS IDE works as well. Below is > console log of steps reproducing the problem: > C:\dev\tmp>cordova create hello com.example.hello HelloWorld > Creating a new cordova project. > C:\dev\tmp>cd hello > C:\dev\tmp\hello>cordova platform add > windows@https://dist.apache.org/repos/dist/dev/cordova/CB-9447/cordova-windows-4.1.0.tgz > git cloning: > https://dist.apache.org/repos/dist/dev/cordova/CB-9447/cordova-windows-4.1.0.tgz > Adding windows project... > Creating Cordova Windows Project: > App Name : HelloWorld > Namespace : com.example.hello > Path : C:\dev\tmp\hello\platforms\windows > Copying template to C:\dev\tmp\hello\platforms\windows > Discovered plugin "cordova-plugin-whitelist" in config.xml. Installing to the > project > Fetching plugin "cordova-plugin-whitelist@1" via npm > Installing "cordova-plugin-whitelist" for windows > C:\dev\tmp\hello>cordova build --release -- --appx=uap --archs=x64 > Running command: cmd "/s /c > "C:\dev\tmp\hello\platforms\windows\cordova\build.bat --release --appx=uap > --archs=x64"" > MSBuildToolsPath: C:\Program Files (x86)\MSBuild\14.0\bin\amd64\ > Building project: > C:\dev\tmp\hello\platforms\windows\CordovaApp.Windows10.jsproj > Configuration : release > Platform : x64 > C:\Program Files > (x86)\MSBuild\Microsoft\.NetNative\Microsoft.NetNative.targets > (337,5): error MSB4062: The "ComputeManagedBinaries" task could not be loaded > f > rom the assembly C:\Program Files > (x86)\MSBuild\Microsoft\.NetNative\x64\ilc\il > c.exe. Could not load file or assembly 'file:///C:\Program Files > (x86)\MSBuild\ > Microsoft\.NetNative\x64\ilc\ilc.exe' or one of its dependencies. An attempt > wa > s made to load a program with an incorrect format. Confirm that the > <UsingTask> > declaration is correct, that the assembly and all its dependencies are > availab > le, and that the task contains a public class that implements > Microsoft.Build.F > ramework.ITask. > [C:\dev\tmp\hello\platforms\windows\CordovaApp.Windows10.jsproj > ] > ERROR: Error code 1 for command: C:\Program Files > (x86)\MSBuild\14.0\bin\amd64\msbuild with args: > C:\dev\tmp\hello\platforms\windows\CordovaApp.Windows10.jsproj,/clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal,/nologo,/p:Configuration=release,/p:Platform=x64 > ERROR building one of the platforms: Error: cmd: Command failed with exit > code 2 > You may not have the required environment or OS to build this project > Error: cmd: Command failed with exit code 2 > at ChildProcess.whenDone > (C:\Users\vladimir\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:139:23) > at ChildProcess.emit (events.js:110:17) > at maybeClose (child_process.js:1015:16) > at Process.ChildProcess._handle.onexit (child_process.js:1087:5) > C:\dev\tmp\hello>cordova build -- --appx=uap --archs=x64 > Running command: cmd "/s /c > "C:\dev\tmp\hello\platforms\windows\cordova\build.bat --appx=uap --archs=x64"" > MSBuildToolsPath: C:\Program Files (x86)\MSBuild\14.0\bin\amd64\ > Building project: > C:\dev\tmp\hello\platforms\windows\CordovaApp.Windows10.jsproj > Configuration : debug > Platform : x64 > CordovaApp.Windows10 -> > C:\dev\tmp\hello\platforms\windows\AppPackages\Cordov > > aApp.Windows10_0.0.1.0_x64_debug_Test\CordovaApp.Windows10_0.0.1.0_x64_debug. > appx > BUILD OUTPUT: > C:\dev\tmp\hello\platforms\windows\AppPackages\CordovaApp.Windows10_0.0.1.0_x64_debug_Test\CordovaApp.Windows10_0.0.1.0_x64_debug.appx -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org