anchor.diff:  :SkipPRService
   
   :: Grant master PR service's app pool access to current repo if master PRService exists
  -if /I '%_masterRepo%'=='%_currentRepo%' goto :SkipGrantAccess
  -if NOT EXIST %_masterRepo% goto :SkipGrantAccess
  +if /I '%_id%'=='%_idMaster%' goto :SkipGrantAccess
   %_appcmd% list apppool %_prServiceMaster% >nul
  -if ERRORLEVEL 1 goto :SkipGrantAccess
  +if ERRORLEVEL 1 (
  +    echo SKIP granting PRService M permission to current repo. PRService not found: %_prServiceMaster%.
  +    goto :SkipGrantAccess
  +)
   echo Grant master PRService app pool: %_prServiceMaster% "Modify" access to %_currentRepo% and its sudirectories
   call :Run icacls %_currentRepo% /grant:r "IIS APPPOOL\%_prServiceMaster%":(OI)(CI)M /Q
   if ERRORLEVEL 1 goto :Failure
   
   :SkipGrantAccess
  -
  -:: Install certificates if %_wcfTestDir% does not exist; otherwise, assume certs are installed already
  -if EXIST %_wcfTestDir% goto :SkipCertInstall
   
   :: Make sure there is an HTTPS binding in IIS site "Default Web Site"
   %_appcmd% list site "Default Web Site" /text:* | findstr /i bindings | findstr /i https >nul
  
positive.code:     echo Add an HTTPS binding to "Default Web Site"
      call :Run %_appcmd% set site "Default Web Site" /+bindings.[protocol='https',bindingInformation='*:443:']
      if ERRORLEVEL 1 goto :Failure
  )
  
  :: Use master repo for cert generation if master repo exists; otherwise use current repo
  
negative.code:     set _certRepo=%_currentRepo%
      set _certService=%_wcfServiceName%
  )
  echo Use %_certService% for certificate service
  
  echo Build CertificateGenerator tool
  call :Run %_certRepo%\src\System.Private.ServiceModel\tools\scripts\BuildCertUtil.cmd
  