Skip to content

Commit

Permalink
Update build.psm1 to not remove IL assemblies after crossgen because …
Browse files Browse the repository at this point in the history
…the latest dotnet.exe checks the existence of all TPA assemblies, including those built from the local projects
  • Loading branch information
daxian-dbw authored and mirichmo committed Oct 14, 2016
1 parent 2e402cf commit a1aac43
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -2437,6 +2437,12 @@ function Start-CrossGen {
Generate-CrossGenAssembly -CrossgenPath $crossGenPath -AssemblyPath $assemblyPath
}

<#
# The latest dotnet.exe from .NET Core 1.1.0 preview packages starts
# to check the existence of all TPA assemblies, including those built
# from local projects (e.g. powershell assemblies). The TPA assemblies
# in '.deps.json' are IL assemblies, so we cannot remove those ILs.
#
Write-Verbose "PowerShell Ngen assemblies have been generated, deleting ILs..." -Verbose
foreach ($assemblyName in $psCoreAssemblyList) {
# Remove the IL assembly and its symbols.
Expand All @@ -2445,6 +2451,7 @@ function Start-CrossGen {
Remove-Item $assemblyPath -Force -ErrorAction SilentlyContinue
Remove-Item $symbolsPath -Force -ErrorAction SilentlyContinue
}
#>
}

# Cleans the PowerShell repo
Expand Down

0 comments on commit a1aac43

Please sign in to comment.