ExtendedNuGetAliases.

IsNuGetPublished(ICakeContext, FilePath, string) Method

Summary

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

Syntax

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

Attributes

Type Description
CakeMethodAliasAttribute
CakeNamespaceImportAttribute

Parameters

Name Type Description
context ICakeContext The context.
file FilePath The .nupkg file.
nugetSource string The NuGet package source.

Return Value

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