pool:
  name: Hosted Windows 2019 with VS2019

variables:
  BuildPlatform: 'any cpu'
  BuildConfiguration: 'release'

steps:
- task: NuGetToolInstaller@0
  displayName: 'Use NuGet 5.0.0'
  inputs:
    versionSpec: 5.0.0

- task: NuGetCommand@2
  displayName: 'NuGet restore'
  inputs:
    restoreSolution: ExRam.Gremlinq.sln

- task: VSBuild@1
  displayName: 'Build solution ExRam.Gremlinq.sln'
  inputs:
    solution: ExRam.Gremlinq.sln
    platform: '$(BuildPlatform)'
    configuration: '$(BuildConfiguration)'

- task: VSTest@2
  displayName: 'VsTest - testAssemblies'
  inputs:
    testAssemblyVer2: |
     **\ExRam.Gremlinq.Core.Tests\bin\$(BuildConfiguration)\*\ExRam.Gremlinq.Core.Tests.dll
     **\ExRam.Gremlinq.Providers.Tests\bin\$(BuildConfiguration)\*\ExRam.Gremlinq.Providers.Tests.dll
     **\ExRam.Gremlinq.Providers.WebSocket.Tests\bin\$(BuildConfiguration)\*\ExRam.Gremlinq.Providers.WebSocket.Tests.dll
     **\ExRam.Gremlinq.Providers.CosmosDb.Tests\bin\$(BuildConfiguration)\*\ExRam.Gremlinq.Providers.CosmosDb.Tests.dll
    platform: '$(BuildPlatform)'
    configuration: '$(BuildConfiguration)'

- task: CopyFiles@2
  displayName: 'Copy Files to: $(build.artifactstagingdirectory)'
  inputs:
    SourceFolder: '$(build.sourcesdirectory)'
    Contents: '**\bin\$(BuildConfiguration)\**\*.nupkg'
    TargetFolder: '$(build.artifactstagingdirectory)'
    flattenFolders: true

- task: PublishBuildArtifacts@1
  displayName: 'Publish Artifact: drop'







pool:
  name: Hosted Windows 2019 with VS2019

variables:
  BuildPlatform: 'any cpu'
  BuildConfiguration: 'release'

steps:
- task: NuGetToolInstaller@0
  displayName: 'Use NuGet 5.3.0'
  inputs:
    versionSpec: 5.3.0

- task: UseDotNet@2
  displayName: 'Use .NET Core sdk 2.x'
  inputs:
    version: 2.x

- task: UseDotNet@2
  displayName: 'Use .NET Core sdk 3.x'
  inputs:
    version: 3.x

- task: DotNetCoreCLI@2
  displayName: Build
  inputs:
    arguments: '--configuration $(BuildConfiguration)'

- task: DotNetCoreCLI@2
  displayName: Test
  inputs:
    command: test
    projects: '**/*.Tests.csproj'
    arguments: '--configuration $(BuildConfiguration)'

- task: CopyFiles@2
  displayName: 'Copy Files to: $(build.artifactstagingdirectory)'
  inputs:
    SourceFolder: '$(build.sourcesdirectory)'
    Contents: '**\bin\$(BuildConfiguration)\**\*.nupkg'
    TargetFolder: '$(build.artifactstagingdirectory)'
    flattenFolders: true

- task: PublishBuildArtifacts@1
  displayName: 'Publish Artifact: drop'







Use dotnet core sdk to build and test.
Use dotnet core sdk to build and test.
