anchor.diff:  
   :: Do the actual work
   cd %~dp0
  +call :restore src
  +call :restore test
   call :buildSubdir src
  -call :buildSubdir test
   call :runTests test
  
positive.code: )
  goto :EOF
  
  :runTests
  
  pushd %1
  for /f "delims=" %%p in ('dir /a-d /b /s project.json') do (
      :: Exclude bin/ and obj/ directories
      echo %%p | findstr /i /c:bin /c:obj > NUL
      if !ERRORLEVEL! NEQ 0 dnx -p "%%p" test
  )
  popd
  goto :EOF
  
  :: Entry point
  :main
  
  :: Check for dnu and dnx
  call :checkInstalled dnu
  
negative.code: @echo off
  setlocal enableDelayedExpansion
  
  set config=Release
  
  goto parseOptions
  
  :: Functions
  
  :buildSubdir
  
  for /f "delims=" %%p in ('call :listProjects %*') do call dnu pack "%%p" --configuration "%config%"
  goto :EOF
  
  :checkInstalled
  