From 47f529912facb2c66d2b0726c6ac311cea9d5c83 Mon Sep 17 00:00:00 2001 From: Joey Robichaud Date: Thu, 1 Jul 2021 16:36:34 -0700 Subject: [PATCH] Set prerelease version label --- azure-pipelines-pr-validation.yml | 1 + src/Setup/DevDivInsertionFiles/DevDivInsertionFiles.csproj | 1 + 2 files changed, 2 insertions(+) diff --git a/azure-pipelines-pr-validation.yml b/azure-pipelines-pr-validation.yml index 6ab83e9f52a29..7f1078fdc5928 100644 --- a/azure-pipelines-pr-validation.yml +++ b/azure-pipelines-pr-validation.yml @@ -123,6 +123,7 @@ stages: /p:DotNetSymbolServerTokenSymWeb=$(symweb-symbol-server-pat) /p:DotNetArtifactsCategory=$(_DotNetArtifactsCategory) /p:DotnetPublishUsingPipelines=false + /p:PreReleaseVersionLabel=pr-validation condition: succeeded() # Publish OptProf generated JSON files as a build artifact. This allows for easy inspection from diff --git a/src/Setup/DevDivInsertionFiles/DevDivInsertionFiles.csproj b/src/Setup/DevDivInsertionFiles/DevDivInsertionFiles.csproj index 82bb66a741dc3..8988a5b254517 100644 --- a/src/Setup/DevDivInsertionFiles/DevDivInsertionFiles.csproj +++ b/src/Setup/DevDivInsertionFiles/DevDivInsertionFiles.csproj @@ -258,6 +258,7 @@ <_OptimizedNuGetPackageVersionSuffix Condition="'$(OfficialBuild)' != 'true'">vs-ci <_OptimizedNuGetPackageVersionSuffix Condition="'$(OfficialBuild)' == 'true'">vs-$(VersionSuffixDateStamp)-$(VersionSuffixBuildOfTheDayPadded) + <_OptimizedNuGetPackageVersionSuffix Condition="'$(PreReleaseVersionLabel)' == 'pr-validation'">pr-validation-$(VersionSuffixDateStamp)-$(VersionSuffixBuildOfTheDayPadded)