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

OBSOLETE

Use Fake.DotNet.NuGet.Restore instead

RestorePackageHelper

Contains tasks which allow to restore NuGet packages from a NuGet package feed like nuget.org. There is also a tutorial about nuget package restore available.

Nested types and modules

TypeDescription
RestorePackageParams
OBSOLETE

Use Fake.DotNet.NuGet.Restore instead

RestorePackages parameter path

RestoreSinglePackageParams
OBSOLETE

Use Fake.DotNet.NuGet.Restore instead

RestorePackages parameter path for single packages

Functions and values

Function or valueDescription
findNuget(defaultPath)
Signature: defaultPath:string -> string
Attributes:
[<Obsolete("Use Fake.DotNet.NuGet.Restore instead")>]
OBSOLETE

Use Fake.DotNet.NuGet.Restore instead

Looks for NuGet.exe in [1] the specified defaultPath, [2] a list of standard tool folders, [3] any subfolder in the current directory, [4] the PATH - returns the first path where NuGet.exe was found.

RestoreMSSolutionPackages(...)
Signature: setParams:(RestorePackageParams -> RestorePackageParams) -> solutionFile:string -> unit
Attributes:
[<Obsolete("Use Fake.DotNet.NuGet.Restore instead")>]
OBSOLETE

Use Fake.DotNet.NuGet.Restore instead

Restores the packages in the given solution file file from NuGet.

Parameters

  • setParams - Function used to manipulate the default NuGet parameters.
  • solutionFile - The microsoft sln file name.

Sample

1: 
2: 
3: 
4: 
5: 
6: 
7: 
8: 
Target "RestorePackages" (fun _ -> 
     "./src/Everything.sln"
     |> RestoreMSSolutionPackages (fun p ->
         { p with
             Sources = "http://myNugetSources.com" :: p.Sources
             OutputPath = outputDir
             Retries = 4 })
 )
RestorePackage setParams packageFile
Signature: setParams:(RestorePackageParams -> RestorePackageParams) -> packageFile:string -> unit
Attributes:
[<Obsolete("Use Fake.DotNet.NuGet.Restore instead")>]
OBSOLETE

Use Fake.DotNet.NuGet.Restore instead

Restores the packages in the given packages.config file from NuGet.

Parameters

  • setParams - Function used to manipulate the default NuGet parameters.
  • packageFile - The packages.config file name.

Sample

1: 
2: 
3: 
4: 
5: 
6: 
7: 
8: 
Target "RestorePackages" (fun _ -> 
     "./src/ProjectA/packages.config"
     |> RestorePackage (fun p ->
         { p with
             Sources = "http://myNugetSources.com" :: p.Sources
             OutputPath = outputDir
             Retries = 4 })
 )
RestorePackageDefaults
Signature: RestorePackageParams
Attributes:
[<Obsolete("Use Fake.DotNet.NuGet.Restore instead")>]
OBSOLETE

Use Fake.DotNet.NuGet.Restore instead

RestorePackage defaults parameters

RestorePackageId setParams packageId
Signature: setParams:(RestoreSinglePackageParams -> RestoreSinglePackageParams) -> packageId:string -> unit

Restores the given package from NuGet

RestorePackages()
Signature: unit -> unit
Attributes:
[<Obsolete("Use Fake.DotNet.NuGet.Restore instead")>]
OBSOLETE

Use Fake.DotNet.NuGet.Restore instead

Restores all packages from NuGet to the default directories by scanning for packages.config files in any subdirectory.

RestoreSinglePackageDefaults
Signature: RestoreSinglePackageParams
Attributes:
[<Obsolete("Use Fake.DotNet.NuGet.Restore instead")>]
OBSOLETE

Use Fake.DotNet.NuGet.Restore instead

RestoreSinglePackageParams defaults parameters