From 20ce3cca2b8d72350bdaf4724c48eeb2c5e1223f Mon Sep 17 00:00:00 2001 From: Francisco Gamino Date: Wed, 3 Aug 2016 17:35:05 -0700 Subject: [PATCH] Fixing path to remove ILs after the ngen binary is generated. --- build.psm1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.psm1 b/build.psm1 index dd850d1c8..e09fc4d12 100644 --- a/build.psm1 +++ b/build.psm1 @@ -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