title: TFS2013 MsTest, invalid switch
body: <p>I've recently moved to TFS213, did an install on a new machine.</p>
  
  <p>After building one of my projects the result showed an error on MsTest. It turned out that it had invalid switches (as in <a href="https://stackoverflow.com/questions/6948094/error-when-running-unit-tests-from-msbuild">Error when running unit tests from MSBuild</a>)</p>
  
  <p>Invalid switch "/publish".
  Invalid switch "/publishbuild".
  Invalid switch "/teamproject".
  Invalid switch "/platform".
  Invalid switch "/flavor".</p>
  
  <p>I have found various posts online about this and have done the following :</p>
  
  <p>I have installed vs2013 professional on the build-machine, in various posts it's says to install ultimate but I don't have a license for ultimate.</p>
  
  <p>The problem still persists, the MsTest.exe is started from the correct location (it's only installed in C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE, and the build-process does find the MsTest executable.</p>
  
  <p>for now I've disabled testing in my build-definition but that's not the 'ideal' situation ;-).</p>
  
  <p>Should I just remove the invalid 'switches' or is there some other solution</p>
  
  <p>TIA,
  Jurjen.</p>