Yes you are right. If you use TFS build definitions, change the MSBuild platform to x86 . When you edit the assembly definition in VS 2012, select Process and go to the Advanced Settings option and change the MSBuild platform drop-down list from Auto to x86 . When the 32-bit version of MSBuild will be used, and all these 32-bit tools will easily create your Windows Phone 8 libraries.
OR if you use MSBuild via cmd:
"C: /WINDOWS/Microsoft.NET/ Framework /v4.0.30319/MSBuild.exe" instead of "C: /WINDOWS/Microsoft.NET/ Framework64 /v4.0.30319/MSBuild.exe" ( / p: PlatformTarget = x86 )
source share