anchor.diff:  setlocal enableDelayedExpansion
   
   set config=Release
  +set listProjects=dir /a-d /b /s project.json ^| findstr /v /i /c:bin /c:obj
   
   goto parseOptions
   
  
positive.code: )
  goto :EOF
  
  :listProjects
  
  pushd %1
  for /f "delims=" %%p in ('dir /a-d /b /s project.json') do (
      :: Exclude bin/ and obj/ directories
      echo %%p | findstr /v /i /c:bin /c:obj
  )
  popd
  goto :EOF
  
  :restore
  
  :: dnu is a batch script, so we need to `call` it
  for /f "delims=" %%p in ('call :listProjects %*') do call dnu restore "%%p"
  goto :EOF
  
  :runTests
  
  for /f "delims=" %%p in ('call :listProjects %*') do dnx -p "%%p" test
  goto :EOF
  
  :: Entry point
  
negative.code: 
  :buildSubdir
  
  pushd %1
  for /f "delims=" %%p in ('%listProjects%') do call dnu pack "%%p" --configuration "%config%"
  popd
  goto :EOF
  
  :checkInstalled
  