Passing the configuration parameter to dotnet pack in the windows package script

This commit is contained in:
Livar Cunha 2016-01-21 10:32:10 -08:00 committed by Livar Cunha
parent b1bce2b50a
commit b459c3665e

View file

@ -35,7 +35,7 @@ cp $Stage2Dir\bin\* $PackagesDir\$Configuration\$Tfm -force -recurse
foreach ($ProjectName in $Projects) {
$ProjectFile = "$RepoRoot\src\$ProjectName\project.json"
& $toolsDir\dotnet pack "$ProjectFile" --basepath "$PackagesDir" --output "$IntermediatePackagesDir" $versionArg
& $toolsDir\dotnet pack "$ProjectFile" --basepath "$PackagesDir" --output "$IntermediatePackagesDir" --configuration "$Configuration" $versionArg
if (!$?) {
Write-Host "$toolsDir\dotnet pack failed for: $ProjectFile"
Exit 1