Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Visual Studio Remove Unused Nuget Dependencies

$
0
0

i am struggeling for a while now with removing unused dependencies from bin output folders. I am for example writing a small .NET Wpf program which gets its data from a Web server. Therefore i installed the System.Net.Http NugetPackage to make my Get / Post requests. The Package Information is stored in the .csproj file. When i compile the project a lot of Dependencies are added to the output folder

  • Sytem.Security.Cryptography.Algorithms.dll

  • Sytem.Security.Cryptography.Encoding.dll

  • Sytem.Security.Cryptography.Primitives.dll

  • Sytem.Security.Cryptography.X509Certificates.dll

  • ...

None of these dependencies are explicitly used in my program, means when i delete them from the output folder and start the application everything works as expected. I do understand that this Dlls has to be in the package, but how can i ignore them. Is there a way to ignore dependencies within a nuget package?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>