Summary
Gets or sets the server URL.
When using NuGet pre 3.4.2, this value is optional
and nuget.org is used if omitted (unless DefaultPushSource
config value is set in the NuGet config file.
When using NuGet 3.4.2 (or more recent), this value is mandatory.
Starting with NuGet 2.5, if NuGet.exe identifies a UNC/folder source,
it will perform the file copy to the source.
- Namespace
- Cake
.Common .Tools .NuGet .Push - Containing Type
- NuGetPushSettings
Syntax
public string Source { get; set; }
Remarks
For your convenience, here is the URL for some of the most popular
public NuGet servers:
- NuGet Gallery: https://nuget.org/api/v2/package
- MyGet: https://www.myget.org/F/<your_username>/api/v2/package.
Value
Type | Description |
---|---|
string | The server URL. |