Make sure nuget package version suffix applies to all ProjectReference (#3678)

This commit is contained in:
Dongbo Wang authored and GitHub committed 2017-05-01 22:34:25 -07:00
1 parent 9051ca1fbc
commit 73e5dc3020
1 file changed
+9
+9
View File
@@ -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=<suffix> # Bake the suffix into project.assets.json
## dotnet pack --version-suffix <suffix>
$TopProject = (New-PSOptions).Top
dotnet restore $TopProject "/p:VersionSuffix=$VersionSuffix"
}
try {
Push-Location $PSScriptRoot
@(