Closed
Description
dotnet cache is generating native images for all transitive dependencies for all assemblies in its output set. From the logs, it appears that it's not reusing any intermediate results - so commonly-depended-upon assemblies are compiled many times.
I've attached a log that I generated from aspnet/JitBench. Search for Microsoft.AspNetCore.Authentication.dll generated successfully
and you'll see it show up multiple times.
dotnet --version
outputs 2.0.0-preview1-005694
Repro
To repro this checkout dev
and do:
.\Dotnet-Install.ps1 -SharedRuntime -InstallDir .dotnet -Channel master -Architecture x64
.\Dotnet-Install.ps1 -InstallDir .dotnet -Channel master -Architecture x64
cd src\MusicStore
dotnet restore
dotnet cache -e .\MusicStore.csproj -c Release -f netcoreapp2.0 -r win7-x64 -o .cache