title: How do I force MSBuild to compile for 32-bit mode?
body: <p>I'm using MSBuild (via <a href="http://en.wikipedia.org/wiki/NAnt" rel="noreferrer">NAnt</a>) to compile a bunch of <a href="http://en.wikipedia.org/wiki/Visual_Basic_.NET" rel="noreferrer">VB.NET</a> assemblies. Because these assemblies depend on COM Interop, I need to guarantee that they run in 32-bit mode on 64 bit OS's. I can get the executable assemblies to compile to 32-bit by changing the project in Visual Studio, but I'd really like to be able to force all of the executables to be compiled to 32 bit mode on the build server.</p>
  
  <p>I've tried a number of command-line parameters to MSBuild with no luck:</p>
  
  <ul>
  <li>/p:Platform=win32</li>
  <li>/p:Platform=x86</li>
  <li>/p:ProcessorArchitecture=x86</li>
  </ul>
  
  <p>What am I doing wrong? Is there some reference to the properties that MSBuild uses when compiling VB projects?</p>