Thursday, April 05, 2012 1:31 PM
I have been developing on a 64 bit machine. Therefore all my reference paths are set to C:\Program Files (x86)\<Program Name>. When I queue a build which is on the 32 Bit Build Machine, all the references are located at C:\Program Files\<Program Name>. I have tried to map a netwrok drive on both PC's so there is a common directory where files are located at as P:\<Progarm Name>.
When I remote desktop to the machine and open the project file in the working area, it will build fine. There are no reference problems. However when I automate a build I get lots of errors like:
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets (1360): Could not resolve this reference. Could not locate the assembly "<filename>, Version=18.104.22.168, Culture=neutral, processorArchitecture=x86". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
How do I solve this problem?
Friday, April 06, 2012 9:28 AMModerator
Thanks for your post.
What’s the setting in your solution Configuration Manager? And please check the Configurations to Build in your build definition, specific the Configuration and Platform to match the setting in your solution.
And if you want to using 32-bit MSBuild to build solution on the 64-bit OS, please set the MSBuild Platform to x86 in build definition.
John Qiao [MSFT]
MSDN Community Support | Feedback to us