version: 4.0.0.{build}
image: Visual Studio 2017
configuration: Release
platform: Any CPU
nuget:
  disable_publish_on_pr: true
build_script:
- cmd: >-
    dotnet --version

    dotnet restore ./src/OwinRequestScopeContext/OwinRequestScopeContext.csproj --verbosity m

    dotnet publish ./src/OwinRequestScopeContext/OwinRequestScopeContext.csproj --framework netstandard2.0 --configuration Release --output "bin/Publish/netstandard2.0" /p:IsPublishing="true"

    dotnet publish ./src/OwinRequestScopeContext/OwinRequestScopeContext.csproj --framework net461 --configuration Release --output "bin/Publish/net461" /p:IsPublishing="true"
test_script:
- cmd: >-
    dotnet restore ./src/OwinRequestScopeContext.Tests/OwinRequestScopeContext.Tests.csproj --verbosity m

    dotnet test ./src/OwinRequestScopeContext.Tests/OwinRequestScopeContext.Tests.csproj --verbosity m --test-adapter-path:. --logger:Appveyor
artifacts:
- path: ./src/OwinRequestScopeContext/bin/Publish/netstandard2.0
  name: publish_netstandard2.0
- path: ./src/OwinRequestScopeContext/bin/Publish/net461
  name: publish_net461
- path: ./src/OwinRequestScopeContext/bin/Packages
  name: packages
deploy: off

version: 4.0.0.{build}
image: Visual Studio 2019
configuration: Release
platform: Any CPU
nuget:
  disable_publish_on_pr: true
build_script:
- cmd: >-
    dotnet --version
    dotnet restore ./src/OwinRequestScopeContext/OwinRequestScopeContext.csproj --verbosity m
    dotnet publish ./src/OwinRequestScopeContext/OwinRequestScopeContext.csproj --framework netstandard2.0 --configuration Release --output "bin/Publish/netstandard2.0" /p:IsPublishing="true"
    dotnet publish ./src/OwinRequestScopeContext/OwinRequestScopeContext.csproj --framework net461 --configuration Release --output "bin/Publish/net461" /p:IsPublishing="true"
test_script:
- cmd: >-
    dotnet restore ./src/OwinRequestScopeContext.Tests/OwinRequestScopeContext.Tests.csproj --verbosity m
    dotnet test ./src/OwinRequestScopeContext.Tests/OwinRequestScopeContext.Tests.csproj --verbosity m --framework net461 --test-adapter-path:. --logger:Appveyor
    dotnet test ./src/OwinRequestScopeContext.Tests/OwinRequestScopeContext.Tests.csproj --verbosity m --framework netcoreapp2.2 --test-adapter-path:. --logger:Appveyor
artifacts:
- path: ./src/OwinRequestScopeContext/bin/Publish/netstandard2.0
  name: publish_netstandard2.0
- path: ./src/OwinRequestScopeContext/bin/Publish/net461
  name: publish_net461
- path: ./src/OwinRequestScopeContext/bin/Packages
  name: packages
deploy: off

Make AppVeyor run tests for all supported target frameworks.
Make AppVeyor run tests for all supported target frameworks.
