image: Visual Studio 2019

# Adds "+build.XXX" to MinVer's build metadata
environment:
  MINVERBUILDMETADATA: build.%APPVEYOR_BUILD_NUMBER%

# AppVeyor's displayed version, will get updated by MSBuild target
version: '{build}'

before_build:
- dotnet restore

build_script:
- dotnet build --no-restore --configuration Release

test_script:
- dotnet test --no-build --configuration Release -p:CollectCoverage=true

after_test:
- choco install codecov
- pwsh: codecov --file @(ls ./testresults/*.opencover.xml)

artifacts:
- path: ./**/*.nupkg

image: Visual Studio 2022

# Adds "+build.XXX" to MinVer's build metadata
environment:
  MINVERBUILDMETADATA: build.%APPVEYOR_BUILD_NUMBER%

# AppVeyor's displayed version, will get updated by MSBuild target
version: '{build}'

before_build:
- dotnet restore

build_script:
- dotnet build --no-restore --configuration Release

test_script:
- dotnet test --no-build --configuration Release -p:CollectCoverage=true

after_test:
- choco install codecov
- pwsh: codecov --file @(ls ./testresults/*.opencover.xml)

artifacts:
- path: ./**/*.nupkg

Update AppVeyor to VS2022 image
Update AppVeyor to VS2022 image
