The <dependencies> element within <metadata> contains any number of <dependency> elements that identify other packages upon which the top-level package depends.
dependency
01 Syntax
02 Properties
| Name | Overloads | Summary |
|---|---|---|
| id | 1 | (Required) The package ID of the dependency, such as "EntityFramework" and "NUnit", which is the name of the package nuget.org shows on a package page. |
| version | 1 | (Required) The range of versions acceptable as a dependency. |
| exclude | 1 | A comma-delimited list of include/exclude tags (see below) indicating of the dependency to exclude in the final package. |
| include | 1 | A comma-delimited list of include/exclude tags (see below) indicating of the dependency to include in the final package. |
03 Members
(Required) The package ID of the dependency, such as "EntityFramework" and "NUnit", which is the name of the package nuget.org shows on a package page.
(Required) The range of versions acceptable as a dependency. See Package versioning for exact syntax. Floating versions are not supported.
A comma-delimited list of include/exclude tags (see below) indicating of the dependency to exclude in the final package. The default value is build,analyzers which can be over-written. But content/ ContentFiles are also implicitly excluded in the final package which can't be over-written. Tags specified with exclude take precedence over those specified with include. For example, include="runtime, compile" exclude="compile" is the same as include="runtime".
A comma-delimited list of include/exclude tags (see below) indicating of the dependency to include in the final package. The default value is all.