Description
When defining a Dockerfile intended to be used for building .NET Core apps, it is useful to have the canonical NuGet packages cached on disk in order to avoid having to re-pull them each time the image is used. The same applies when setting up a build server machine/VM. For both of these scenarios it is important to not bloat the resulting image with content that would never be used.
If you browse the NuGetFallbackFolder
today you will notice the majority of the content is not applicable Docker/build server scenarios.
It would be ideal if there was an option to trim out all unneeded files from the package folders. A bare minimum would be to honor the NUGET_XMLDOC_MODE=skip
environment variable setting by the first run experience.
Note: The NUGET_XMLDOC_MODE=skip
setting used to be honored by the first run experience prior to the introduction of the NuGetFallbackFolder.
Related to dotnet/dotnet-docker#237