title: Building C# Solution in Release mode using MSBuild.exe
body: <p>I am able to build a solution using MSBuild.exe, but my issue is I can only manage to get it to build in DEBUG mode. I need to build my solution in Release mode using MSBUILD.</p>
  
  <p>Here is what I've tried</p>
  
  <pre><code>Process msbuild = Process.Start("C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\MsBuild.exe", solutionfilepath + " /P:Config=Release");
  </code></pre>
  
  <p>and</p>
  
  <pre><code>Process msbuild = Process.Start("C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\MsBuild.exe", solutionfilepath + " /P:Configuration=Release");
  </code></pre>