BuildMaster Documentation

.net - Get NuGet Dependencies

  • Last Modified: 2020-06-26

This is generated from the built-in components of BuildMaster 6.2.13, 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
);

Is this documentation incorrect or incomplete? Help us by contributing!

This documentation is licensed under CC-BY-SA-4.0 and stored in GitHub.

Generated from commit ced119d5 on master