Referencing Dependencies

If your NuGet package depends on other NuGet packages, the listing of these dependencies will be generated based on the packages.config file found in your project, if any. External assemblies referenced in your project will also be added to the project manifest based on the files contained in the from the lib folder. These conventions are overridden by adding a <dependencies> element for NuGet package references or a <references> element to add external assembly references.

Specifying Dependencies

The dependencies element is a child element of the metadata element and contains a set of dependency elements. Each dependency element is a reference to another package that this package depends on. When installing a package ...

Get Pro NuGet now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.