title: VS2019 - msbuild is not recognized as internal or external command
body: <p>I am using VS2019 community and I've set pre-build event:</p>
  
  <pre><code>msbuild "$(ProjectPath)" /t:Clean
  </code></pre>
  
  <p>I am getting error:</p>
  
  <pre><code>  'MSBuild' is not recognized as an internal or external command,
    operable program or batch file
  </code></pre>
  
  <p>How is this possible? Isn't this command supposed to be build into visual studio?</p>
  
  <p>I've checked <a href="https://stackoverflow.com/questions/6319274/how-do-i-run-msbuild-from-the-command-line-using-windows-sdk-7-1">this</a> and tried to set path environment, but it doesn't help.</p>
  
  <p>Does anybody else has the same problem with this command in VS2019?</p>