ExtendedNuGetAliases.

GetPackageReference(ICakeContext, DirectoryPath, string) Method

Summary

Get a NuGet project dependency by packageId.

Syntax

public static PackageReference GetPackageReference(this ICakeContext context, DirectoryPath path, string packageId)

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext This ICakeContext.
path DirectoryPath A relative DirectoryPath where packages.config resides.
packageId string The package Name.

Return Value

Type Description
PackageReference A IEnumerable<T>.