Get NuGet Dependencies
- 14 May 2021
- 1 Minute to read
- Print
- DarkLight
- PDF
Get NuGet Dependencies
- Updated on 14 May 2021
- 1 Minute to read
- Print
- DarkLight
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
This is generated from the built in components of BuildMaster 7.0.0, and may be different than what you have installed (especially if you have extensions); go to [User Icon] -> Documentation within your BuildMaster instance to see exactly what operations are available.
Get NuGet Dependencies
Inspects a .NET build project/packages.config to return the required versions of NuGet package dependencies.
Script usage:
DotNet::Get-Dependencies( [ProjectPath: <text>], [PackageId: <text>], [Dependencies: <RuntimeValue>] );
Arguments:
Name | Format | Script Usage | Usage Notes |
---|---|---|---|
Project path | text | ProjectPath | |
Package ID | text | PackageId | |
⇒ Dependencies | RuntimeValue | Dependencies | If PackageId is specified, the name of a text variable to receive the package version. If PackageId is not specified, the name of a map variable to received all dependency information. |
Example:
# Store project dependencies in %depends map DotNet::Get-Dependencies ( ProjectPath: ~\Src\MyProject, Dependencies => %depends );
Was this article helpful?