Summary
Adds a package.
Syntax
public void AddPackage(string packageId, IEnumerable<string> packageSources = null, string versionRange = null, bool getLatest = false, bool allowPrereleaseVersions = false, bool allowUnlisted = false, bool exclusive = false)
Parameters
Name |
Type |
Description |
packageId |
string |
The package identifier. |
packageSources |
IEnumerable<string> |
The package sources. |
versionRange |
string |
The version range. |
getLatest |
bool |
If set to true , the latest version of the package will always be downloaded. |
allowPrereleaseVersions |
bool |
If set to true , allow prerelease versions. |
allowUnlisted |
bool |
If set to true , allow unlisted versions. |
exclusive |
bool |
If set to true , only use the package sources defined for this package. |
Return Value