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

How to exclude third party dlls

$
0
0

Visual Studio 2022.

I created a normal .Net Framework Class Library.

In this library I added some third party packages/dlls to get the library to do what I need.

I open up a new project and add a reference to the library above. In the project's bin folder I can see the library I created listed in here and nothing else.All works as I expect.

I convert the Class Library I created to a NuGet package and host it on our internal Azure Devops artifacts section.

I remove the reference from the project I added manually to and install the same class library by using the NuGet package I created.

The issue I see is when adding the package via NuGet it includes all the third party dlls I added to the class library.

How could I tweak the NuGet package so it only installs the dll which is the name of the project and not include the third party dlls?

Please note I added the reference manually into another project by selecting the dll only and it didn't include anything other than the project class library.


Viewing all articles
Browse latest Browse all 3067

Trending Articles



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