anchor.diff:  @if "%SCM_TRACE_LEVEL%" NEQ "4" @echo off
   
  -:: ----------------------
  -:: KUDU Deployment Script
  -:: Version: 1.0.17
  -:: ----------------------
  +REM ----------------------
  +REM KUDU Deployment Script
  +REM Version: 1.0.17
  +REM ----------------------
   
  -:: Prerequisites
  -:: -------------
  +REM Prerequisites
  +REM -------------
   
  -:: Verify node.js installed
  +REM Verify node.js installed
   where node 2>nul >nul
   IF %ERRORLEVEL% NEQ 0 (
     echo Missing node.js executable, please install node.js, if already installed make sure it can be reached from current environment.
     goto error
   )
   
  -:: Setup
  -:: -----
  +REM Setup
  +REM -----
   
   setlocal enabledelayedexpansion
   
  
positive.code: SET MSBUILD_PATH=%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe
  :MsbuildPathDefined
  
  :: Node set-up
  SET NPM_CMD=npm
  SET NODE_EXE=node
  echo Node version
  
negative.code:   popd
    IF !ERRORLEVEL! NEQ 0 goto error
  )
  REM .b Enter app dir
  pushd %DEPLOYMENT_SOURCE%\app
  REM .c Install Dependencies
  echo Install app dependencies
  call :ExecuteCmd %YARN_PATH% install
  IF !ERRORLEVEL! NEQ 0 goto error
  REM .e Build Webapp (already copy contents on the /web dir)
  echo Building WebApp
  call :ExecuteCmd %YARN_PATH% run build-web-release
  IF !ERRORLEVEL! NEQ 0 goto error
  REM .f Exit app dir (restore previous location)
  popd
  REM Z: on success end, copy package file to track future changes
  copy /Y /V %DEPLOY_META_CURRENT_PACKAGE_JSON% %DEPLOY_META_LAST_PACKAGE_JSON%
  IF !ERRORLEVEL! NEQ 0 goto error
  
  :AfterWebappBuild
  
  REM::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  REM Deployment
  REM ----------
  
  echo Handling .NET Web Site deployment.
  
  REM 1. Prepare web.config file to deploy with Release settings
  call :ExecuteCmd "%MSBUILD_PATH%" web/deploy-config.proj /verbosity:m /nologo /p:Configuration=Release /t:TransformConfig
  call :ExecuteCmd "%MSBUILD_PATH%" web/deploy-config.proj /verbosity:m /nologo /p:Configuration=Release /t:CleanTransformConfig
  
  REM 2. Restore NuGet packages
  : Disabled since was unable to make it work. No the packages folder is commited into the repo
  REM call :ExecuteCmd nuget.exe restore "%DEPLOYMENT_SOURCE%\web\Loconomics.sln" -MSBuildPath "%ProgramFiles(x86)%\MSBuild\14.0\Bin"
  
  REM 3. Build to the repository path
  call :ExecuteCmd "%MSBUILD_PATH%" "%DEPLOYMENT_SOURCE%\web\Loconomics.sln" /verbosity:m /nologo %SCM_BUILD_ARGS%
  IF !ERRORLEVEL! NEQ 0 goto error
  
  REM 4. KuduSync
  IF /I "%IN_PLACE_DEPLOYMENT%" NEQ "1" (
    echo "KuduSync IgnoreList:" %IGNORE_LIST%
    call :ExecuteCmd "%KUDU_SYNC_CMD%" -v 50 -f "%DEPLOYMENT_SOURCE%\web" -t "%DEPLOYMENT_TARGET%" -n "%NEXT_MANIFEST_PATH%" -p "%PREVIOUS_MANIFEST_PATH%" -i "%IGNORE_LIST%"
    IF !ERRORLEVEL! NEQ 0 goto error
  )
  
  REM:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  goto end
  
  REM Execute command routine that will echo out when error
  :ExecuteCmd
  setlocal
  set _CMD_=%*
  