Fix Nuget package creation arg passing
This commit is contained in:
parent
ed5538292e
commit
4a8b4116aa
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ param(
|
||||||
$toolsDir = $toolsDir.TrimEnd('\')
|
$toolsDir = $toolsDir.TrimEnd('\')
|
||||||
$versionArg = ""
|
$versionArg = ""
|
||||||
if ($versionSuffix -ne "") {
|
if ($versionSuffix -ne "") {
|
||||||
$versionArg = "--version-suffix $versionSuffix"
|
$versionArg = "--version-suffix"
|
||||||
}
|
}
|
||||||
|
|
||||||
. "$PSScriptRoot\..\..\scripts\common\_common.ps1"
|
. "$PSScriptRoot\..\..\scripts\common\_common.ps1"
|
||||||
|
@ -24,7 +24,7 @@ New-Item -ItemType Directory -Force -Path $IntermediatePackagesDir
|
||||||
foreach ($ProjectName in $ProjectsToPack) {
|
foreach ($ProjectName in $ProjectsToPack) {
|
||||||
$ProjectFile = "$RepoRoot\src\$ProjectName\project.json"
|
$ProjectFile = "$RepoRoot\src\$ProjectName\project.json"
|
||||||
|
|
||||||
& $toolsDir\dotnet pack "$ProjectFile" --basepath "$Stage2CompilationDir\bin" --output "$IntermediatePackagesDir" --configuration "$Configuration" $versionArg
|
& $toolsDir\dotnet pack "$ProjectFile" --basepath "$Stage2CompilationDir\bin" --output "$IntermediatePackagesDir" --configuration "$Configuration" $versionArg $versionSuffix
|
||||||
if (!$?) {
|
if (!$?) {
|
||||||
Write-Host "$toolsDir\dotnet pack failed for: $ProjectFile"
|
Write-Host "$toolsDir\dotnet pack failed for: $ProjectFile"
|
||||||
Exit 1
|
Exit 1
|
||||||
|
|
Loading…
Reference in a new issue