I recently I noticed something, that I never really paid any attention to. I Develop Software in C# and I use Nuget Packages a lot. Even though Nuget console states, that the Nuget Package is downloaded for a specific .NET version, it is always loading multiple Versions which I won't ever need.
For example I have a WPF Project, which uses the .Net Framework 4.7.2. I add a Nuget Package to that Project, and in addition to the folder net472 there are also folders for net462 net562 netstandard2.0 netstandard2.1 which I don't need at all.
what I mean here is the folder structure in the packages folder of my project.
At the Company I work at, we have about 200 Projects in our workspace with 1-5 Nugets per project on average, and I assume, all these additional files over so many projects, will take up a lot of space (my disk drive is slowly approaching its limit), so I'm wondering if there is an option or something, that will stop nuget from loading files it won't ever need. I'm using visual studio 2019.
I've searched the internet already but found noting so far, as everything that comes up, is how install a specific version of a nuget package, but not how to install it only for a specific .NET version and nothing else. Also no obvious setting in the visual studio options seems to do what I need.
help would be appreciated