NuGet aliases

Built-In

Contains functionality for working with NuGet.

Add

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

AddSource

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

Delete

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

HasSource

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

Init

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

Install

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

List

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

Pack

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

Push

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

RemoveSource

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

Restore

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

SetApiKey

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

SetProxy

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

Update

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

Cake.ExtendedNuGet addin

Extended NuGet Aliases.

General

GetNuGetPackageId(FilePath)
Alias from Cake.ExtendedNuGet addin
Gets the Package Id from a .nupkg file.
GetNuGetPackageVersion(FilePath)
Alias from Cake.ExtendedNuGet addin
Gets the Package Version from a .nupkg file.
GetPackageReference(DirectoryPath, string)
Alias from Cake.ExtendedNuGet addin
Get a NuGet project dependency by packageId.
GetPackageReferences(DirectoryPath)
Alias from Cake.ExtendedNuGet addin
NuGet project dependencies.
IsNuGetPublished(FilePath, string)
Alias from Cake.ExtendedNuGet addin
Determines if a .nupkg is already published at the given NuGet package source.
IsNuGetPublished(string, NuGetVersion, string)
Alias from Cake.ExtendedNuGet addin
Determines if a .nupkg is already published at the given NuGet package source.
IsNuGetPublished(string, string, string)
Alias from Cake.ExtendedNuGet addin
Determines if a .nupkg is already published at the given NuGet package source.
PublishNuGets(string, string, PublishNuGetsSettings, string[])
Alias from Cake.ExtendedNuGet addin
Looks for and attempts to publish NuGet packages matching the globbing patterns.
PublishNuGets(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(FilePath, string)
Alias from Cake.PinNuGetDependency addin
Pin NuGet Dependencies based on identifier.