Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Windows 10 fails to build in VSTS Hosted Pool with a "Could not load file or assembly" error in Cordova 5.4.x #32

Closed
Chuxel opened this issue Feb 11, 2016 · 1 comment

Comments

@Chuxel
Copy link
Member

Chuxel commented Feb 11, 2016

This is due to a Cordova bug: https://issues.apache.org/jira/browse/CB-9565?jql=text%20~%20%22An%20attempt%20was%20made%20to%20load%20a%20program%20with%20an%20incorrect%20format.%22

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.

This was fixed in Cordova Windows 4.2.0.

Workaround:

  1. Upgrade to Cordova 6.0.0
  2. Add the following to config.xml and run a clean build:

<engine name="cordova-windows" spec="4.2.0" />

@Chuxel Chuxel added the wontfix label Feb 11, 2016
@Chuxel
Copy link
Member Author

Chuxel commented Feb 11, 2016

Known issue, not an extension problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants