Skip to content

Commit

Permalink
Allow for VersioningProps to be passed to the build
Browse files Browse the repository at this point in the history
  • Loading branch information
weshaggard committed Apr 12, 2019
1 parent c8bb47c commit 38dbca3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .azure-pipelines/dotnet.yml
@@ -1,5 +1,6 @@
# External variables:
# ProjectFile - The project to build and test. This variable is defined in pipeline web ui because we want to be able to provide it at queue time and that isn't supported in yaml yet.
# VersioningProps - A collection of extra msbuild versioning properties like OfficialBuildId, PreReleaseVersionLabel, and DotNetFinalVersionKind

trigger:
- master
Expand All @@ -19,7 +20,7 @@ jobs:
inputs:
version: '$(DotNetCoreVersion)'

- script: 'dotnet pack $(ProjectFile) -o $(Build.ArtifactStagingDirectory) -warnaserror'
- script: 'dotnet pack $(ProjectFile) -o $(Build.ArtifactStagingDirectory) -warnaserror $(VersioningProps)'
displayName: 'Build and Package'
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
Expand Down

0 comments on commit 38dbca3

Please sign in to comment.