NuGet

Summary

Extended NuGet Aliases

General

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

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

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.