version: '1.0.{build}'
image: Visual Studio 2017
install:
  - dotnet --version
  - dotnet restore
build_script:
  - dotnet build
  - dotnet pack -o artifacts_nuget
test_script:
  - ps: ForEach ($proj in (Get-ChildItem -Path test -Recurse -Filter '*.csproj')) { dotnet test --no-build $proj.FullName }
artifacts:
  - path: '**/artifacts_nuget/*.nupkg'
    name: NuGet Packages

version: '1.0.{build}'
image: Visual Studio 2017
install:
  - dotnet --version
  - dotnet restore
build_script:
  - dotnet build
  - dotnet pack -o artifacts_nuget --version-suffix=${env:APPVEYOR_REPO_BRANCH}${env:APPVEYOR_BUILD_NUMBER} --configuration Release
test_script:
  - ps: ForEach ($proj in (Get-ChildItem -Path test -Recurse -Filter '*.csproj')) { dotnet test --no-build $proj.FullName }
artifacts:
  - path: '**/artifacts_nuget/*.nupkg'
    name: NuGet Packages

Add Version Suffix to Appveyor NuGet
Add Version Suffix to Appveyor NuGet
