You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Vladimir Avdonin (JIRA)" <ji...@apache.org> on 2015/08/27 17:27:46 UTC

[jira] [Created] (CB-9565) Failure to build release package for Windows 10 project from CLI

Vladimir Avdonin created CB-9565:
------------------------------------

             Summary: 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: Vladimir Avdonin


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-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org