anchor.diff:  REM
   REM Version is read from the VERSION file.
   REM
  -REM Command-line parameter specifies either "signed" or a prerelease string to append to the version
  +REM Command-line parameter specifies optionally "signed" or "nodebug",
  +REM followed by an optional prerelease string to append to the version.
   REM
   REM Say VERSION contains "0.0.3" then:
   REM
   REM build-nupkg                     <-- generates package with version 0.0.3
   REM build-nupkg build-140912-1100   <-- generates package with version 0.0.3-build-140912-1100
  +REM
  +REM The "nodebug" flag builds only release flavor package, skipping the debug variant.
   REM
   REM The "signed" flag is intended for internal Microsoft use. This generates a
   REM package without a prerelease version number, using a license agreement
  
positive.code: REM perform signing: the expectation is that previous tooling has already
  REM signed the files and copied them to the right place for it to pick up.
  REM
  
  PUSHD "%~dp0"
  
  
negative.code: SET /p VERSION=<VERSION
  
  IF "%1" == "signed" (
      SHIFT
      SET NODEBUG=true
      SET BIN=bin\signed
      SET OUTDIR=..\..\bin\signed
      SET LICENSE_URL=http://www.microsoft.com/web/webpi/eula/eula_win2d_10012014.htm
      SET REQUIRE_LICENSE_ACCEPTANCE=true
  ) else (
      SET BIN=bin
      SET OUTDIR=..\..\bin
      SET LICENSE_URL=http://github.com/Microsoft/Win2D/blob/master/LICENSE.txt
      SET REQUIRE_LICENSE_ACCEPTANCE=false
  )
  
  IF "%1" == "nodebug" (
      SHIFT
      SET NODEBUG=true
  )
  
  IF NOT "%1" == "" (
      SET VERSION=%VERSION%-%1
  )
  
  if "%OVERRIDE_NUGET_PACKAGE%" == "" (
      SET NUGET_PACKAGE=Win2D
  ) else (
      ECHO Using OVERRIDE_NUGET_PACKAGE: %OVERRIDE_NUGET_PACKAGE%
  