Remove PDBs from fxdependent pacakge (#8006)

This commit is contained in:
Aditya Patwardhan 2018-10-11 18:08:28 -07:00 committed by Travis Plunk
parent 5b4e9a9881
commit 5fcab21111
2 changed files with 11 additions and 1 deletions

View file

@ -269,6 +269,11 @@ function Start-PSPackage {
}
}
"fxdependent" {
## Remove PDBs from package to reduce size.
if(-not $IncludeSymbols.IsPresent) {
Get-ChildItem -Recurse $Source -Filter *.pdb | Remove-Item -Force
}
if ($IsWindows) {
$Arguments = @{
PackageNameSuffix = $NameSuffix

View file

@ -94,7 +94,12 @@ try{
{
Write-Verbose "Starting powershell build for RID: $Runtime and ReleaseTag: $ReleaseTag ..." -verbose
$buildParams = @{'CrossGen'= $Runtime -notmatch "arm" -and $Runtime -ne "fxdependent"}
if(!$Symbols.IsPresent)
if($Symbols.IsPresent)
{
$buildParams['NoPSModuleRestore'] = $true
}
else
{
$buildParams['PSModuleRestore'] = $true
}