Search code examples
msbuild64-bitcruisecontrol.net

Running MSBuild from Cruise Control .NET with 64 tools environment enabled


I was running into the a linker error: Error C1002 compiler is out of heap space in pass 2 (while building using Visual Studio 2015) recently and my solution was to use msbuild from the command line making sure to enable the 64 bit toolset (vcvars64.bat) from the VS2015 x64 Native Tools command prompt. This fixed the problem, but when creating release builds, I use Cruise Control .NET, I not sure how to do the same thing from that environment. Has anyone done something similar? Thanks.


Solution

  • The MSBuild property you might want to set is PreferredToolArchitecture.