Cake.ExtendedNuGet

Cake build aliases and classes additional NuGet functionality.

#addin nuget:?package=Cake.ExtendedNuGet&version=2.1.1

<package id="Cake.ExtendedNuGet" version="2.1.1" />

dotnet add package Cake.ExtendedNuGet --version 2.1.1

<PackageReference Include="Cake.ExtendedNuGet" Version="2.1.1" />

Aliases

Extended NuGet Aliases

General

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