anchor.diff:    goto Next
   )
   
  +if /I [%1] == [/e] (
  +  set clean_environment=true
  +  goto Next
  +)
  +
   if /I [%1] == [/all] (
     set clean_src=
     set clean_tools=
  +  set clean_environment=
     set clean_targets=Clean;CleanPackages;CleanPackagesCache;
     set clean_all=true
     goto Begin
  
positive.code: )
  
  if NOT "%clean_targets%" == "" (
    echo Running msbuild clean targets "%clean_targets:~0,-1%" ...
    echo. >> %cleanlog% && echo msbuild.exe %~dp0build.proj /t:%clean_targets:~0,-1% /nologo /v:minimal /flp:v=detailed;Append;LogFile=%cleanlog% >> %cleanlog%
    call msbuild.exe %~dp0build.proj /t:%clean_targets:~0,-1% /nologo /v:minimal /flp:v=detailed;Append;LogFile=%cleanlog%
  
negative.code: )
  
  if /I [%clean_tools%] == [true] (
    call :CleanEnvironment
    echo Cleaning tools directory ...
    echo. >> %cleanlog% && echo rmdir /s /q %~dp0tools >> %cleanlog%
    rmdir /s /q %~dp0tools >> %cleanlog%
  