anchor.diff:  echo.
   echo Setup WCF test services hosted on IIS for the testing of WCF on .NET Core
   echo.
  -echo Usage: %~n0 Id [/c]
  +echo Usage: %~n0 Id [/c] [/p:{PathToWcfRepo}]
   echo    Id: The Id of a WCF repo and its associated IIS hosted services to be created.
   echo        The Id will be appended to the name of all assets to be created.
   echo        %_idMaster%: if Id is '%_idMaster%', additional IIS hosted services such as PRService
   echo        will be created to serve as central services for other WCF repos. 
   echo    /c: If specified, this will clean up any existing setup of Id instead of creating new.
  +echo    /p: If an existing WCF repo is preferred to be used, use this parameter to provide the
  +echo        path to a WCF repo. Otherwise, the script will clone a new WCF repo at %_repoHome%
  +echo        to use as the source of WCF test service.
   echo.
   echo Examples:
   echo    %~n0 42
   echo    :Create a WCF repo named 'wcf42' and IIS hosted services such as 'WcfService42'
   echo    %~n0 42 /c
   echo    :Clean up WCF repo 'wcf42' and all associated IIS hosted services such as 'WcfService42'
  +echo    %~n0 42 /p:"c:\my\existing\wcf\repo"
  +echo    :Create an IIS hosted service named 'wcfService42' by using existing WCF repo located at "c:\my\existing\wcf\repo".
   goto :Done
   
   :Run
  
positive.code: set _githubWcfRepoUrl=https://github.com/dotnet/wcf
  set _exitCode=0
  set _cmd=
  
  if '%1'=='' goto :Usage
  if '%1'=='/?' goto :Usage
  if '%1'=='-?' goto :Usage
  if '%1'=='/help' goto :Usage
  if '%1'=='-help' goto :Usage
  
  :: Make sure this script is running in elevated
  if EXIST %_logFile% del %_logFile% /f /q
  
negative.code: %_appcmd% delete apppool %_prServiceName% >nul
  %_appcmd% delete app "Default Web Site/%_wcfServiceName%" >nul
  %_appcmd% delete apppool %_wcfServiceName% >nul
  if EXIST %_currentRepo% if DEFINED _useExistingRepo (echo User provided repo is not deleted: %_currentRepo%) else (rmdir /s /q %_currentRepo%)
  if EXIST %_wcfTestDir% if /I '%_masterRepo%'=='%_currentRepo%' rmdir /s /q %_wcfTestDir%
  echo Clean up done.
  if DEFINED _cleanup goto :Done
  
  :: Determine if we need to clone a new WCF repo
  if DEFINED _useExistingRepo (
      if NOT EXIST %_currentRepo% echo ERROR: The provided WCF repo was not found: %_currentRepo% & goto :Failure
      echo Use provided WCF repo: %_currentRepo%
      goto :SkipCloneRepo
  )
  
  :: Make sure git.exe is available
  where git.exe /Q
  