Fixing path to remove ILs after the ngen binary is generated.

This commit is contained in:
Francisco Gamino committed 2016-08-04 15:33:57 -07:00
1 parent 963710d641
commit 20ce3cca2b
1 file changed
+2 -1
+2 -1
View File
@@ -1739,7 +1739,7 @@ function Start-CrossGen {
Push-Location $crossgenFolder
# Generate the ngen assembly
Write-Verbose "Generating assembly $niAssemblyName"
Write-Verbose "Generating assembly $niAssemblyName" -Verbose
Start-NativeExecution {
& $CrossgenPath /MissingDependenciesOK /in $AssemblyPath /out $outputAssembly /Platform_Assemblies_Paths $platformAssembliesPath
} | Write-Verbose
@@ -1843,6 +1843,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