Adds a package version to build

This commit is contained in:
Chris Cheetham 2019-10-04 11:32:54 -04:00
Родитель d11f2c64cb
Коммит cc6647b937
1 изменённых файлов: 7 добавлений и 4 удалений

Просмотреть файл

@ -5,6 +5,7 @@ trigger:
variables: variables:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: 1 DOTNET_CLI_TELEMETRY_OPTOUT: 1
PackageVersion: $[format('0.5.0-{0}', variables['Build.BuildId'])]
jobs: jobs:
- job: Linux_Build_and_Test - job: Linux_Build_and_Test
@ -40,11 +41,13 @@ jobs:
vmImage: 'Windows-2019' vmImage: 'Windows-2019'
steps: steps:
- task: DotNetCoreCLI@2 - task: DotNetCoreCLI@2
displayName: Build displayName: Pack
inputs: inputs:
command: build command: 'pack'
projects: '**/Tooling.sln' arguments: '---no-restore -c $(buildConfiguration) /p:TreatWarningsAsErrors=True'
arguments: '--configuration Release' packagesToPack: 'Tooling.sln'
versioningScheme: 'byEnvVar'
versionEnvVar: 'PackageVersion'
- task: DotNetCoreCLI@2 - task: DotNetCoreCLI@2
inputs: inputs:
command: test command: test