title: Build C# project with msbuild.exe doesn't overwrite project target platform configuration?
body: <p>I have a c# project and in the solution, the platform target is AnyCPU. While I have a build  program that will daily build this solution and it uses msbuild.exe. The command likes:</p>
  
  <p>MSBuild D:\my.sln /p:Configuration=Release /p:Platform=x86 /t:rebuild ....</p>
  
  <p>Here I specify the compiled platform should be x86.</p>
  
  <p>I my opinion, the msbuild.exe should overwrite solution configure and the output should be x86 exe instead of anyCPU type.</p>
  
  <p>I try these codes into this project: </p>
  
  <pre><code>        PortableExecutableKinds peKind;
          ImageFileMachine machine;
  
          Assembly.GetExecutingAssembly().ManifestModule.GetPEKind(out peKind, out machine);
  </code></pre>
  
  <p>The test result suggest, the exe is AnyCPU mode (ILOnly), not what expected.
  In such condition, how can i know my program it compiler by x86 or x64, by code?</p>
  
  <p>Thanks.
  Li</p>