You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Sergey Grebnov (JIRA)" <ji...@apache.org> on 2014/05/22 07:22:37 UTC

[jira] [Comment Edited] (CB-6732) [WP8] Fix "MSBuild 64 bit is not supported" build error

    [ https://issues.apache.org/jira/browse/CB-6732?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14005621#comment-14005621 ] 

Sergey Grebnov edited comment on CB-6732 at 5/22/14 5:21 AM:
-------------------------------------------------------------

Possible approaches:
1. Use regexp to remove amd64 at the end. MSBuild folders structure is strongly defined so the risk that there is no x86 msbuild version uneder /bin folder is low.
2. Adding Wow6432Node when running in x64 mode - use ProcEnv("PROCESSOR_ARCHITECTURE") = "AMD64"
3. Running  "%VS120COMNTOOLS%\vsvars32.bat" before build to provision required environment, after that we can use 'msbuild' and we don't need to manually search for location
4. Use (/p:PlatformTarget=x86) as per http://stackoverflow.com/a/17461224/255654. Does not work.
5. Try to create/set x32 mode for WScript.Shell


was (Author: sgrebnov):
Possible approaches:
1. Use regexp to remove amd64 at the end. MSBuild folders structure is strongly defined so the risk that there is no x86 msbuild version uneder /bin folder is low.
2. Adding Wow6432Node when running in x64 mode.
3. Running  "%VS120COMNTOOLS%\vsvars32.bat" before build to provision required environment, after that we can use 'msbuild' and we don't need to manually search for location
4. Use (/p:PlatformTarget=x86) as per http://stackoverflow.com/a/17461224/255654. Does not work.

> [WP8] Fix "MSBuild 64 bit is not supported" build error
> -------------------------------------------------------
>
>                 Key: CB-6732
>                 URL: https://issues.apache.org/jira/browse/CB-6732
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: WP8
>    Affects Versions: 3.5.0
>         Environment: Windows 8.x x64, VS 2013
>            Reporter: Sergey Grebnov
>            Assignee: Sergey Grebnov
>
> From dev mail thread:
> Our change to not require msbuild in the user environment path is failing. System returns (respectively) :
> C:\Program Files (x86)\MSBuild\12.0\bin\amd64\ 
> and 
> C:\Windows\Microsoft.NET\Framework64\v4.0.30319\
> Which results in the following error message:
> "Building Windows Phone application using MSBuild 64 bit is not supported. If you are using TFS build definitions, change the MSBuild platform to x86."



--
This message was sent by Atlassian JIRA
(v6.2#6252)