title: Calling mstest.exe from Developer Command Prompt for VS2017 (and older)
body: <p>I used to run my build script from <code>Developer Command Prompt for VS 2015</code> which just executes <code>mstest.exe</code>. With the <code>Visual Studio 2017 Developer Command Prompt</code> however, <code>mstest.exe</code> is not available anymore. All hints from <a href="https://stackoverflow.com/questions/2375481/where-is-mstest-exe-located">Where is mstest.exe located?</a> are not applicable for VS2017.</p>
  
  <p>I know that it is available here: <code>Common7\IDE\MSTest.exe</code> and using following environmental variables I can access it from the dev prompt VS2017:</p>
  
  <pre><code>"%VCIDEInstallDir%"..\mstest
  "%VSINSTALLDIR%"\Common7\IDE\mstest
  "%DEVENVDIR%"..\IDE\mstest
  </code></pre>
  
  <p>But what is the recommened way to call <code>mstest.exe</code>? Which environmental variable is backwards compatible?</p>