I've recently added NLog into my solution and I've noticed that the packages\NLog.4.4.12\lib
directory contains the following directories.
My projects only target .net 4.0 and .net 4.5. How can I get rid of the rest? I searched in the VS 2017 nuget package manager but I couldn't find anything obvious.
I manually removed the directories for the platforms that I didn't need. I've opened the solution with VS 2017 and it didn't complain. I've rebuilt the solution, again no complaint. I've reloaded the project that uses NLog, everything was golden. I've opened package manager, it didn't complain either. In all cases the directories did not reappear.
The only hiccup is that running Update-Package
in Package Manager Console does not restore the previous state. But since I don't care about supporting other platforms in the future, I didn't bother finding a solution.
You can't call it a scientific solution, but since it's better than nothing, it's an answer for now.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With