NuGet aliases

Built-In

Contains functionality for working with NuGet.

Add

NuGetAdd(ICakeContext, string, NuGetAddSettings) Adds a NuGet package using package id and source.
NuGetAdd(ICakeContext, string, string) Adds a NuGet package using package id and source.

AddSource

NuGetAddSource(ICakeContext, string, string) Adds NuGet package source using the specified name &source to global user config.
NuGetAddSource(ICakeContext, string, string, NuGetSourcesSettings) Adds NuGet package source using the specified name, source & settings to global user config.

Delete

NuGetDelete(ICakeContext, string, string, NuGetDeleteSettings) Deletes or unlists a package from a package source.

HasSource

NuGetHasSource(ICakeContext, string) Checks whether or not a NuGet package source exists in the global user configuration, using the specified source.
NuGetHasSource(ICakeContext, string, NuGetSourcesSettings) Checks whether or not a NuGet package source exists in the global user configuration, using the specified source and settings.

Init

NuGetInit(ICakeContext, string, string) Adds all packages from source to destination.
NuGetInit(ICakeContext, string, string, NuGetInitSettings) Adds all packages from source to destination using specified settings.

Install

NuGetInstall(ICakeContext, IEnumerable<string>) Installs NuGet packages.
NuGetInstall(ICakeContext, IEnumerable<string>, NuGetInstallSettings) Installs NuGet packages using the specified settings.
NuGetInstall(ICakeContext, string) Installs a NuGet package.
NuGetInstall(ICakeContext, string, NuGetInstallSettings) Installs a NuGet package using the specified settings.
NuGetInstallFromConfig(ICakeContext, FilePath) Installs NuGet packages using the specified package configuration.
NuGetInstallFromConfig(ICakeContext, FilePath, NuGetInstallSettings) Installs NuGet packages using the specified package configuration and settings.
NuGetInstallFromConfig(ICakeContext, IEnumerable<FilePath>) Installs NuGet packages using the specified package configurations.
NuGetInstallFromConfig(ICakeContext, IEnumerable<FilePath>, NuGetInstallSettings) Installs NuGet packages using the specified package configurations and settings.

List

NuGetList(ICakeContext, NuGetListSettings) List packages on available from source using specified settings.
NuGetList(ICakeContext, string) List packages on available from source using specified settings.
NuGetList(ICakeContext, string, NuGetListSettings) List packages on available from source using specified settings.

Pack

NuGetPack(ICakeContext, FilePath, NuGetPackSettings) Creates a NuGet package using the specified nuspec or project file.
NuGetPack(ICakeContext, IEnumerable<FilePath>, NuGetPackSettings) Creates NuGet packages using the specified nuspec or project files.
NuGetPack(ICakeContext, NuGetPackSettings) Creates a NuGet package using the specified settings.

Push

NuGetPush(ICakeContext, FilePath, NuGetPushSettings) Pushes a NuGet package to a NuGet server and publishes it.
NuGetPush(ICakeContext, IEnumerable<FilePath>, NuGetPushSettings) Pushes NuGet packages to a NuGet server and publishes them.

RemoveSource

NuGetRemoveSource(ICakeContext, string, string) Removes NuGet package source using the specified name & source from global user config.
NuGetRemoveSource(ICakeContext, string, string, NuGetSourcesSettings) Removes NuGet package source using the specified name, source & settings from global user config.

Restore

NuGetRestore(ICakeContext, FilePath) Restores NuGet packages for the specified target.
NuGetRestore(ICakeContext, FilePath, NuGetRestoreSettings) Restores NuGet packages using the specified settings.
NuGetRestore(ICakeContext, IEnumerable<FilePath>) Restores NuGet packages for the specified targets.
NuGetRestore(ICakeContext, IEnumerable<FilePath>, NuGetRestoreSettings) Restores NuGet packages using the specified settings.

SetApiKey

NuGetSetApiKey(ICakeContext, string, string) Installs NuGet packages using the specified API key and source.
NuGetSetApiKey(ICakeContext, string, string, NuGetSetApiKeySettings) Installs NuGet packages using the specified API key, source and settings.

SetProxy

NuGetSetProxy(ICakeContext, string, string, string) Set the proxy settings to be used while connecting to your NuGet feed.
NuGetSetProxy(ICakeContext, string, string, string, NuGetSetProxySettings) Set the proxy settings to be used while connecting to your NuGet feed, including settings.

Update

NuGetUpdate(ICakeContext, FilePath) Updates NuGet packages.
NuGetUpdate(ICakeContext, FilePath, NuGetUpdateSettings) Updates NuGet packages using the specified settings.
NuGetUpdate(ICakeContext, IEnumerable<FilePath>) Updates NuGet packages.
NuGetUpdate(ICakeContext, IEnumerable<FilePath>, NuGetUpdateSettings) Updates NuGet packages using the specified settings.

Cake.ExtendedNuGet addin

Extended NuGet Aliases

General

GetNuGetPackageId(ICakeContext, FilePath)
Alias from Cake.ExtendedNuGet addin
Gets the Package Id from a .nupkg file
GetNuGetPackageVersion(ICakeContext, FilePath)
Alias from Cake.ExtendedNuGet addin
Gets the Package Version from a .nupkg file
GetPackageReference(ICakeContext, DirectoryPath, string)
Alias from Cake.ExtendedNuGet addin
Get a NuGet project dependency by packageId.
GetPackageReferences(ICakeContext, DirectoryPath)
Alias from Cake.ExtendedNuGet addin
NuGet project dependencies.
IsNuGetPublished(ICakeContext, FilePath, string)
Alias from Cake.ExtendedNuGet addin
Determines if a .nupkg is already published at the given NuGet package source.
IsNuGetPublished(ICakeContext, string, NuGetVersion, string)
Alias from Cake.ExtendedNuGet addin
Determines if a .nupkg is already published at the given NuGet package source.
IsNuGetPublished(ICakeContext, string, string, string)
Alias from Cake.ExtendedNuGet addin
Determines if a .nupkg is already published at the given NuGet package source.
PublishNuGets(ICakeContext, string, string, PublishNuGetsSettings, string[])
Alias from Cake.ExtendedNuGet addin
Looks for and attempts to publish NuGet packages matching the globbing patterns
PublishNuGets(ICakeContext, string, string, string, PublishNuGetsSettings, string[])
Alias from Cake.ExtendedNuGet addin
Looks for and attempts to publish NuGet packages matching the globbing patterns

Cake.PinNuGetDependency addin

Contains functionality for pinning NuGet dependencies.

General

PinNuGetDependency(ICakeContext, FilePath, string)
Alias from Cake.PinNuGetDependency addin
Pin NuGet Dependencies based on identifier.