ExtendedNuGetAliases.

GetNuGetPackageId(ICakeContext, FilePath) Method

Summary

Gets the Package Id from a .nupkg file.

Syntax

public static string GetNuGetPackageId(this ICakeContext context, FilePath file)

Attributes

Type Description
CakeMethodAliasAttribute
CakeNamespaceImportAttribute

Parameters

Name Type Description
context ICakeContext The context.
file FilePath The .nupkg file to read.

Return Value

Type Description
string The package Id.