anchor.diff:  )
   
   :EnvSet
  -SET DNU_EXE=dnu
  -SET _buildproj=%~dp0All.sln
  +SET DnuExe=dnu
  +SET BuildProj=%~dp0All.sln
   
   :: Check if DNU exists globally
  -WHERE %DNU_EXE%
  +WHERE %DnuExe%
   
   IF NOT '%ERRORLEVEL%'=='0' (
       ECHO ERROR: build.cmd requires dnu installed gloablly. 
  
positive.code: :: Pull the build summary from the log file
  ECHO.
  ECHO === BUILD RESULT === 
  findstr /ir /c:".*Warning(s)" /c:".*Error(s)" /c:"Time Elapsed.*" "%_buildlog%"
  
  :: Pull xunit test result from the log file
  ECHO.
  ECHO === TEST EXECUTION SUMMARY === 
  findstr /ir /c:"Total:.*Failed.*Skipped.*Time.*" "%_buildlog%"
  
  GOTO :Exit
  
  :Build
  %_buildprefix% msbuild "%_buildproj%" /nologo /maxcpucount /verbosity:minimal /nodeReuse:false /fileloggerparameters:Verbosity=diag;LogFile="%_buildlog%";Append %* %_buildpostfix%
  
  :RestorePackage
  :: Restore inside each subfolder
  FOR /D %%x IN ("src","docs","test") DO (
  PUSHD %%x
  CMD /C %DNU_EXE% restore --parallel
  POPD
  )
  
  SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe
  
  IF EXIST %CACHED_NUGET% GOTO COPYNUGET
  ECHO Downloading latest version of NuGet.exe...
  IF NOT EXIST %LocalAppData%\NuGet MD %LocalAppData%\NuGet
  @powershell -NoProfile -ExecutionPolicy UnRestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '%CACHED_NUGET%'"
  
  :COPYNUGET
  IF EXIST .NuGet\NuGet.exe GOTO RESTORE
  MD .NuGet
  COPY %CACHED_NUGET% .NuGet\NuGet.exe
  
  :RESTORE
  :: Currently has corpnet dependency
  .NuGet\NuGet.exe restore "%_buildproj%"
  
  :Exit
  ECHO.
  ECHO Exit Code = %ERRORLEVEL%
  EXIT /B %ERRORLEVEL%
  
negative.code: @ECHO OFF
  PUSHD %~dp0
  
  SETLOCAL
  
  