Note: This is the migration API reference for FAKE 5. The new (modularized) API documentation can be found here. If the API is already migrated you can check here if exists in a module. More information regarding the migration can be found here

RestoreOptions

dotnet restore command options

Record Fields

Record FieldDescription
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 memberDescription
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 memberDescription
RestoreOptions.Create()
Signature: unit -> RestoreOptions

Parameter default values.

RestoreOptions.Default
Signature: Options
Attributes:
[<Obsolete("Use Options.Create instead")>]
OBSOLETE

Use Options.Create instead