Remove PDBs from fxdependent pacakge (#8006)
This commit is contained in:
parent
5b4e9a9881
commit
5fcab21111
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue