title: msbuild compiler %PATH%
body: <p>I wish to build my solution using an alternative toolset (cl.exe, link.exe and so on...) by changing the PATH environment variable.</p>
  
  <p>When I build the solution using "devenv MySolution.sln" it uses the alternative toolset correctly (calling the alternative cl.exe instead of Visual C++ cl.exe). When I build it using MSBuild, it uses the Visual C++ compiler anyway, ignoring my setting of PATH.</p>
  
  <p>Is there any solution to this problem? Does anybody know how can I make MSBuild invoke the compiler by resolving %PATH% (without modifying all my project and solution files, of course).</p>