Closed
Description
To repro on a new machine (or delete your %userprofile%\.nuget\packages
folder):
- Install the latest dotnet cli: https://dotnetcli.blob.core.windows.net/dotnet/beta/Installers/Latest/dotnet-win-x64.latest.exe
- In a new cmd prompt:
- mkdir C:\DotNetTest
- cd C:\DotNetTest
- dotnet new
- dotnet restore
- dotnet run
Expected Results
In all actuality, I expected the same .NET assemblies that I installed when I installed the dotnet cli to be used.
Actual Results
dotnet restore takes a while, and when it is finished my %userprofile%\.nuget\packages
folder is 340 MB on disk.
Looking into this, a lot of the NuGet packages we download have xml files for every supported language, for multiple versions, and for multiple TFMs. For example:
System.Runtime.Extensions
|--- / 4.0.10
|--- /ref
|--- /dotnet
|--- /de
|--- /System.Runtime.Extensions.xml 325 KB
|--- /es
|--- /.. 7 other languages
|--- /MonoAndroid10
|--- /... 4 other TFMs
|--- / 4.1.0-rc2-23811
|--- /ref
|--- /dotnet5.1
|--- /de
|--- /System.Runtime.Extensions.xml 325 KB
|--- /es
|--- /.. 7 other languages
|--- /... 11 other TFMs
System.Runtime.Extensions alone is 14.2 MB