Cake.ExtendedNuGet

Cake build aliases and classes additional NuGet functionality.

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

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

dotnet add package Cake.ExtendedNuGet --version 4.0.0

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

Aliases

Extended NuGet Aliases

General

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