title: Build project in 2017 Visual Studio from the command line?
body: <p>In Visual Studio my project builds without any problem, but from command line I get the error "Hard error". Project .net (c#)</p>
  
  <p>Command line:</p>
  
  <pre><code> psinfo = new ProcessStartInfo(DEVENVPATH, @"""c:\Projects\[--pathtoproject--].sln"" /build");
   psinfo.WindowStyle = ProcessWindowStyle.Hidden;
   psinfo.UseShellExecute = false;
  
   Process.Start(psinfo).WaitForExit();
  </code></pre>
  
  <p>I got error "Hard error" and Visual Studio crashed.</p>