I have a 32bit build agent on which our MSBuilds run. We recently added a new 64bit machine to our build agent array, but some things in our TFSBuild.proj file is hard coded for a 32bit machine.
Is it possible to check whether the environment being built on is 32 or 64bit?
<Exec Command=""C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe" "$(BuildDirectoryPath)\FooProduct/foo.vdproj" /Build "Release""/>
When running the build on a 32bit machine, it must point to C:\Program Files\... but on a 64bit machine, it must point to C:\Program Files (x86)\...
Thanks