version: '1.0.{build}'

configuration:
- Debug
- Release

platform: Any CPU

environment:
  # Don't report back to the mothership
    DOTNET_CLI_TELEMETRY_OPTOUT: 1

init:
- ps: $Env:LABEL = "CI" + $Env:APPVEYOR_BUILD_NUMBER.PadLeft(5, "0")

before_build:
- appveyor-retry dotnet restore -v Minimal

build_script:
- dotnet build "src\dotnet-make" -c %CONFIGURATION% --no-dependencies --version-suffix %LABEL%

after_build:

test_script:

assembly_info:
  patch: true
  file: src/dotnet-make/project.json
  assembly_version: '{version}'
  assembly_file_version: '{version}'
  assembly_informational_version: '{version}'
  
##deploy:
##  provider: NuGet
##  api_key:
##    secure: 2yGf9wWYVIETYfooKme+gT7pKIbw94M2iwnMBZLlsZR5abhhBp6xpmsaIrodL1eC
##  skip_symbols: true
##  artifact: /.*\.nupkg/

cache:
- '%USERPROFILE%\.nuget\packages'

on_finish:

version: '1.0.{build}'

configuration:
- Debug
- Release

platform: Any CPU

environment:
  # Don't report back to the mothership
    DOTNET_CLI_TELEMETRY_OPTOUT: 1

init:
- ps: $Env:LABEL = "CI" + $Env:APPVEYOR_BUILD_NUMBER.PadLeft(5, "0")

before_build:
- appveyor-retry dotnet restore -v Minimal

build_script:
- dotnet build "src\dotnet-make" -c %CONFIGURATION% --no-dependencies --version-suffix %LABEL%

after_build:

test_script:

assembly_info:
  patch: true
  file: src/dotnet-make/project.json
  assembly_version: '{version}'
  assembly_file_version: '{version}'
  assembly_informational_version: '{version}'
  
cache:
- '%USERPROFILE%\.nuget\packages'

on_finish:

Fix - AppVeyor error "pattern contains invalid characters."
Fix - AppVeyor error "pattern contains invalid characters."
