RestoreOptions
dotnet restore command options
Record Fields
Record Field | Description |
Common
Signature: Options
|
Common tool options |
ConfigFile
Signature: string option
|
Path to the nuget configuration file (nuget.config). |
DisableParallel
Signature: bool
|
Disables restoring multiple projects in parallel (--disable-parallel) |
IgnoreFailedSources
Signature: bool
|
Only warning failed sources if there are packages meeting version requirement (--ignore-failed-sources) |
MSBuildParams
Signature: CliArguments
|
Other msbuild specific parameters |
NoCache
Signature: bool
|
No cache flag (--no-cache) |
Packages
Signature: string list
|
Directory to install packages in (--packages). |
Runtime
Signature: string option
|
The runtime to restore for (seems added in RC4). Maybe a bug, but works. |
Sources
Signature: string list
|
Nuget feeds to search updates in. Use default if empty. |
Instance members
Instance member | Description |
x.Environment
Signature: Map<string,string>
|
Gets the current environment |
x.WithCommon(f)
Signature: (f:(Options -> Options)) -> RestoreOptions
|
Changes the "Common" properties according to the given function |
x.WithEnvironment(map)
Signature: map:Map<string,string> -> RestoreOptions
|
Sets the current environment variables. |
x.WithRedirectOutput(shouldRedirect)
Signature: shouldRedirect:bool -> RestoreOptions
|
Sets a value indicating whether the output for the given process is redirected. |
Static members
Static member | Description |
RestoreOptions.Create()
Signature: unit -> RestoreOptions
|
Parameter default values. |
RestoreOptions.Default
Signature: Options
Attributes: [<Obsolete("Use Options.Create instead")>] |
OBSOLETEUse Options.Create instead |