anchor.diff:  set build-clean=0
   set build-config=Debug
   set build-platform=Win32
  -set skip-tests=0
  -set skip-e2e-tests=0
  +set CMAKE_run_e2e_tests=OFF
  +set CMAKE_run_longhaul_tests=OFF
  +set CMAKE_skip_unittests=OFF
   
   :args-loop
   if "%1" equ "" goto args-done
  
positive.code: :args-done
  
  rem -----------------------------------------------------------------------------
  rem -- clean solutions
  rem -----------------------------------------------------------------------------
  
  if %build-clean%==1 (
      call :clean-a-solution "%build-root%\common\build\windows\common.sln"
      if not %errorlevel%==0 exit /b %errorlevel%
      
      call :clean-a-solution "%build-root%\eventhub_client\build\windows\eventhubclient.sln"
      if not %errorlevel%==0 exit /b %errorlevel%
  )
  
  rem -----------------------------------------------------------------------------
  rem -- build solutions
  rem -----------------------------------------------------------------------------
  
  call :build-a-solution "%build-root%\common\build\windows\common.sln"
  if not %errorlevel%==0 exit /b %errorlevel%
  
  call :build-a-solution "%build-root%\eventhub_client\build\windows\eventhubclient.sln"
  if not %errorlevel%==0 exit /b %errorlevel%
  
  rem -----------------------------------------------------------------------------
  rem -- run unit tests
  rem -----------------------------------------------------------------------------
  
  if %skip-tests%==1 (
      echo Skipping unit tests...
  ) else (
      call :run-unit-tests "common"
      if not %errorlevel%==0 exit /b %errorlevel%
  
      call :run-unit-tests "eventhub_client"
      if not %errorlevel%==0 exit /b %errorlevel%
  )
  rem -----------------------------------------------------------------------------
  rem -- run end-to-end tests
  rem -----------------------------------------------------------------------------
  
  set __skip=1
  if %skip-tests%==0 if %skip-e2e-tests%==0 set __skip=0
  
  if %__skip%==1 (
      echo Skipping end-to-end tests...
  ) else (
      call :run-e2e-tests "eventhub_client"
      if not %errorlevel%==0 exit /b %errorlevel%
  )
  
  rem -----------------------------------------------------------------------------
  rem -- done
  rem -----------------------------------------------------------------------------
  
  goto :eof
  
  
  
negative.code:     exit /b 1
  )
  
  rem ensure nuget.exe exists
  where /q nuget.exe
  if not !errorlevel! == 0 (
  @Echo Azure EventHubs SDK needs to download nuget.exe from https://www.nuget.org/nuget.exe 
  @Echo https://www.nuget.org 
  choice /C yn /M "Do you want to download and run nuget.exe?" 
  if not !errorlevel!==1 goto :eof
  rem if nuget.exe is not found, then ask user
  Powershell.exe wget -outf nuget.exe https://nuget.org/nuget.exe
  	if not exist .\nuget.exe (
  		echo nuget does not exist
  		exit /b 1
  	)
  )
  rem -----------------------------------------------------------------------------
  rem -- parse script arguments
  rem -----------------------------------------------------------------------------
  