Brad King 06fcbc4757 VS10: Fix working directory of consecutive custom commands (#11938)
The VS 10 msbuild tool uses a single command shell to invoke all the
custom command scripts in a project.  Isolate the environment and
working directory of custom commands using setlocal/endlocal.  The
form of each command is

  set errlev=
  setlocal
  cd c:\work\dir
  if %errorlevel% neq 0 goto :cmEnd
  c:
  if %errorlevel% neq 0 goto :cmEnd
  command1 ...
  if %errorlevel% neq 0 goto :cmEnd
  ...
  commandN ...
  if %errorlevel% neq 0 goto :cmEnd
  :cmEnd
  endlocal & set errlev=%errorlevel%
  if %errlev% neq 0 goto :VCEnd

so that all changes to the environment and working directory are
isolated within the script and the return code is preserved.
2011-04-08 15:36:16 -04:00
..
2011-04-05 14:28:38 -04:00
2011-04-08 00:12:56 -04:00
2011-03-15 15:07:37 -04:00
2011-03-15 15:07:37 -04:00
2011-03-15 15:07:37 -04:00
2010-09-10 14:42:09 -04:00
2006-03-10 13:54:57 -05:00
2011-02-25 17:26:34 -05:00
2010-11-12 10:47:28 -05:00
2010-08-31 10:41:23 -04:00