From 73e5dc3020d1f6a99b6ec4f5279f57ca94538159 Mon Sep 17 00:00:00 2001 From: Dongbo Wang Date: Mon, 1 May 2017 22:34:25 -0700 Subject: [PATCH] Make sure nuget package version suffix applies to all ProjectReference (#3678) --- build.psm1 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build.psm1 b/build.psm1 index 849c11a0e..bec7a06e4 100644 --- a/build.psm1 +++ b/build.psm1 @@ -1723,6 +1723,15 @@ function Publish-NuGetFeed # Add .NET CLI tools to PATH Find-Dotnet + if ($VersionSuffix) { + ## NuGet/Home #3953, #4337 -- dotnet pack - version suffix missing from ProjectReference + ## Workaround: + ## dotnet restore /p:VersionSuffix= # Bake the suffix into project.assets.json + ## dotnet pack --version-suffix + $TopProject = (New-PSOptions).Top + dotnet restore $TopProject "/p:VersionSuffix=$VersionSuffix" + } + try { Push-Location $PSScriptRoot @(