Skip to content

Commit

Permalink
Fixed packing of single package in BuildToolkit
Browse files Browse the repository at this point in the history
  • Loading branch information
dbeuchler committed Oct 23, 2020
1 parent a2d01e3 commit 4c62922
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .build/BuildToolkit.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -469,11 +469,13 @@ function Invoke-PackFrameworkProject($CsprojFile, [bool]$IsTool = $False, [bool]
function Invoke-Pack($ProjectPath, [bool]$IsTool = $False, [bool]$IncludeSymbols = $False) {
CreateFolderIfNotExists $NugetPackageArtifacts;

if (Get-CsprojIsSdkProject($ProjectPath)) {
Invoke-PackSdkProject $ProjectPath $IncludeSymbols;
$csprojFile = Get-Item $ProjectPath;

if (Get-CsprojIsSdkProject($csprojFile)) {
Invoke-PackSdkProject $csprojFile $IncludeSymbols;
}
else {
Invoke-PackFrameworkProject $ProjectPath $IsTool $IncludeSymbols;
Invoke-PackFrameworkProject $csprojFile $IsTool $IncludeSymbols;
}
}

Expand Down

0 comments on commit 4c62922

Please sign in to comment.