NuGetAliases.

NuGetSetProxy(ICakeContext, string, string, string) Method

Summary

Set the proxy settings to be used while connecting to your NuGet feed.
Namespace
Cake.Common.Tools.NuGet
Containing Type
NuGetAliases

Syntax

[CakeMethodAlias]
[CakeAliasCategory("SetProxy")]
[CakeNamespaceImport("Cake.Common.Tools.NuGet.SetProxy")]
public static void NuGetSetProxy(this ICakeContext context, string proxy, string username, string password)

Examples

NuGetSetProxy("127.0.0.1:8080", "proxyuser","Pa$$w0rd1");

Attributes

Type Description
CakeMethodAliasAttribute An attribute used to mark script method aliases.
CakeAliasCategoryAttribute An attribute used for documentation of alias methods/properties.
CakeNamespaceImportAttribute An attribute used to hint Cake about additional namespaces that need to be imported for an alias to work. This attribute can mark an extension method, the extension method class, or the assembly to provide a global set of imports.

Parameters

Name Type Description
context ICakeContext The context.
proxy string The url of the proxy.
username string The username used to access the proxy.
password string The password used to access the proxy.

Return Value

Type Description
void