ExtendedNuGetAliases.

IsNuGetPublished(ICakeContext, string, string, string) Method

Summary

Determines if a .nupkg is already published at the given NuGet package source.

Syntax

public static bool IsNuGetPublished(this ICakeContext context, string packageId, string version, string nugetSource = "https://api.nuget.org/v3/index.json")

Attributes

Type Description
CakeMethodAliasAttribute
CakeNamespaceImportAttribute

Parameters

Name Type Description
context ICakeContext The context.
packageId string The NuGet package Id.
version string The NuGet package Version.
nugetSource string The NuGet package source.

Return Value

Type Description
bool true if the .nupkg is published at the given NuGet package source.