anchor.diff:  setlocal
   
   set INIT_TOOLS_LOG=%~dp0init-tools.log
  -if [%PACKAGES_DIR%]==[] set PACKAGES_DIR=%~dp0packages\
  +if [%PACKAGES_DIR%]==[] set PACKAGES_DIR=%~dp0packages
   if [%TOOLRUNTIME_DIR%]==[] set TOOLRUNTIME_DIR=%~dp0Tools
   set DOTNET_PATH=%TOOLRUNTIME_DIR%\dotnetcli\
   if [%DOTNET_CMD%]==[] set DOTNET_CMD=%DOTNET_PATH%dotnet.exe
   if [%BUILDTOOLS_SOURCE%]==[] set BUILDTOOLS_SOURCE=https://dotnet.myget.org/F/dotnet-buildtools/api/v3/index.json
   set /P BUILDTOOLS_VERSION=< "%~dp0BuildToolsVersion.txt"
  -set BUILD_TOOLS_PATH=%PACKAGES_DIR%Microsoft.DotNet.BuildTools\%BUILDTOOLS_VERSION%\lib\
  +set BUILD_TOOLS_PATH=%PACKAGES_DIR%\Microsoft.DotNet.BuildTools\%BUILDTOOLS_VERSION%\lib
   set INIT_TOOLS_RESTORE_PROJECT=%~dp0init-tools.msbuild
   set BUILD_TOOLS_SEMAPHORE_DIR=%TOOLRUNTIME_DIR%\%BUILDTOOLS_VERSION%
   set BUILD_TOOLS_SEMAPHORE=%BUILD_TOOLS_SEMAPHORE_DIR%\init-tools.completed
  
positive.code: set /p ILASMCOMPILER_VERSION=< "%~dp0tools-local\ILAsmVersion.txt"
  
  echo Initializing BuildTools...
  echo Running: "%BUILD_TOOLS_PATH%init-tools.cmd" "%~dp0" "%DOTNET_CMD%" "%TOOLRUNTIME_DIR%" >> "%INIT_TOOLS_LOG%"
  call "%BUILD_TOOLS_PATH%init-tools.cmd" "%~dp0" "%DOTNET_CMD%" "%TOOLRUNTIME_DIR%" >> "%INIT_TOOLS_LOG%"
  set INIT_TOOLS_ERRORLEVEL=%ERRORLEVEL%
  if not [%INIT_TOOLS_ERRORLEVEL%]==[0] (
    echo ERROR: An error occured when trying to initialize the tools. 1>&2
  
negative.code: :: if force option is specified then clean the tool runtime and build tools package directory to force it to get recreated
  if [%1]==[force] (
    if exist "%TOOLRUNTIME_DIR%" rmdir /S /Q "%TOOLRUNTIME_DIR%"
    if exist "%PACKAGES_DIR%\Microsoft.DotNet.BuildTools" rmdir /S /Q "%PACKAGES_DIR%\Microsoft.DotNet.BuildTools"
  )
  
  :: If semaphore exists do nothing
  