NuGetSources Class

Summary

The NuGet sources is used to work with user config feeds & credentials.
graph BT Type-->Base0["NuGetTool<NuGetSourcesSettings>"] Base0-->Base1["Tool<NuGetSourcesSettings>"] Base1-->Base2["object"] Type["NuGetSources"] class Type type-node

Syntax

public sealed class NuGetSources : NuGetTool<NuGetSourcesSettings>

Constructors

Methods

Name Value Summary
AddSource(string, string, NuGetSourcesSettings) void
Adds NuGet package source using the specified settings to global user config.
HasSource(string, NuGetSourcesSettings) bool
Determines whether the specified NuGet package source exist.
RemoveSource(string, string, NuGetSourcesSettings) void
Remove specified NuGet package source.

Extension Methods

Name Value Summary
Dump<NuGetSources>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<NuGetSources>(NuGetSources[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<NuGetSources>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
NotNull<NuGetSources>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
ThrowIfNull<NuGetSources>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<NuGetSources>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin