ExtendedNuGetAliases.

GetNuGetPackageVersion(ICakeContext, FilePath) Method

Summary

Gets the Package Version from a .nupkg file.

Syntax

public static NuGetVersion GetNuGetPackageVersion(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
NuGetVersion The package version.