trigger:
- master

pool:
  vmImage: 'windows-latest'

variables:
  Major: 4
  Minor: 0
  BuildConfiguration: 'Release'

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

steps:
- checkout: self
  submodules: true

- task: UseDotNet@2
  inputs:
    packageType: 'sdk'
    version: '5.0.100-rc.2.20479.15'
    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: CmdLine@2
  inputs:
    script: |
      set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
      dotnet tool install --global AzureSignTool

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

pool:
  vmImage: 'windows-latest'

variables:
  Major: 4
  Minor: 0
  BuildConfiguration: 'Release'

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

steps:
- checkout: self
  submodules: true

- task: UseDotNet@2
  inputs:
    packageType: 'sdk'
    version: '5.0.100'
    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: CmdLine@2
  inputs:
    script: |
      set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
      dotnet tool install --global AzureSignTool

- task: PublishBuildArtifacts@1
  inputs:
    PathtoPublish: 'ServerStaging'
    ArtifactName: 'artifact'
    publishLocation: 'Container'
Use .net 5 final SDK
Use .net 5 final SDK