title: Different Paths To msbuild in VS2017
body: <p>OS: <code>Microsoft Windows [Version 10.0.14393]</code></p>
  
  <p>VS-Version: <code>2017 Community</code></p>
  
  <p>When I run <code>vswhere.exe</code> I get the following back and based on on the official <code>vswhere</code> <a href="https://github.com/Microsoft/vswhere/blob/develop/README.md#example" rel="nofollow noreferrer" title="github/vswhere">documentation </a> I can build the path to <code>msbuild</code> and this seems to work:</p>
  
  <pre><code>C:\Users\user\Desktop&gt;"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe"
  Visual Studio Locator version 1.0.62 [query version 1.10.80.60812]
  Copyright (C) Microsoft Corporation. All rights reserved.
  [...]
  installationPath: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community
  [...]
  C:\Users\user\Desktop&gt;"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe"
  Microsoft (R)-Buildmodul, Version 15.1.1012.6693
  </code></pre>
  
  <p>If I start the developer command prompt located in <code>"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsMSBuildCmd.bat"</code> I get the following result:</p>
  
  <pre><code>C:\Users\user&gt;"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsMSBuildCmd.bat"
  **********************************************************************
  ** Visual Studio 2017 MSBuild Command Prompt
  ** Copyright (c) 2017 Microsoft Corporation
  **********************************************************************
  C:\Users\user&gt;where msbuild
  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe
  C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
  </code></pre>
  
  <hr>
  
  <ol>
  <li>Why and what is the second path returned after starting the developer command prompt</li>
  <li>I always use the first path (<code>"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe"</code>) to call <code>msbuild</code> for building C/C++/VC++ Projects. Is this in someway wrong?</li>
  </ol>