mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-23 09:43:57 +08:00
Make sure nuget package version suffix applies to all ProjectReference (#3678)
This commit is contained in:
parent
9051ca1fbc
commit
73e5dc3020
@ -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
|
||||
@(
|
||||
|
Loading…
Reference in New Issue
Block a user