Merge pull request #1638 from PowerShell/frangom/bugfixes

Fixing path to remove ILs after the ngen binary is generated. This fixes issue ##1636
This commit is contained in:
Andy Schwartzmeyer 2016-08-05 13:59:13 -07:00 committed by GitHub
commit 0c7573a71a

View file

@ -1858,6 +1858,7 @@ function Start-CrossGen {
Write-Verbose "PowerShell Ngen assemblies have been generated, deleting ILs..." -Verbose
foreach ($assemblyName in $psCoreAssemblyList) {
# Remove the IL assembly and its symbols.
$assemblyPath = Join-Path $PublishPath $assemblyName
$symbolsPath = $assemblyPath.Replace(".dll", ".pdb")
Remove-Item $assemblyPath -Force -ErrorAction SilentlyContinue
Remove-Item $symbolsPath -Force -ErrorAction SilentlyContinue