trigger:
- master

pool:
  vmImage: 'windows-latest'

variables:
  Major: 3
  Minor: 99
  BuildConfiguration: 'Release'

name: $(Major).$(Minor).$(BuildID)

steps:
- checkout: self
  submodules: true

- task: UseDotNet@2
  inputs:
    packageType: 'sdk'
    version: '3.0.100-preview8-013656'
    includePreviewVersions: true

- task: DotNetCoreCLI@2
  inputs:
    command: 'build'
    feedsToUse: 'select'
    versioningScheme: byBuildNumber
    arguments: '--configuration $(BuildConfiguration) -p:Version=$(Build.BuildNumber);FileVersion=$(Build.BuildNumber)'

- task: CmdLine@2
  inputs:
    script: 'iscc /Q "Setup Script.iss"'

- task: PublishBuildArtifacts@1
  inputs:
    PathtoPublish: 'ServerStaging'
    ArtifactName: 'artifact'
    publishLocation: 'Container'    
trigger:
- master

pool:
  vmImage: 'windows-latest'

variables:
  Major: 3
  Minor: 99
  BuildConfiguration: 'Release'

name: $(Major).$(Minor).$(BuildID)

steps:
- checkout: self
  submodules: true

- task: UseDotNet@2
  inputs:
    packageType: 'sdk'
    version: '3.0.100-preview9-19424'
    includePreviewVersions: true

- task: DotNetCoreCLI@2
  inputs:
    command: 'build'
    feedsToUse: 'select'
    versioningScheme: byBuildNumber
    arguments: '--configuration $(BuildConfiguration) -p:Version=$(Build.BuildNumber);FileVersion=$(Build.BuildNumber)'

- task: CmdLine@2
  inputs:
    script: 'iscc /Q "Setup Script.iss"'

- task: PublishBuildArtifacts@1
  inputs:
    PathtoPublish: 'ServerStaging'
    ArtifactName: 'artifact'
    publishLocation: 'Container'    
Use .net core 3 SDK preview 9
Use .net core 3 SDK preview 9