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.NuGet instead

NuGetHelper

Contains helper functions and task which allow to inspect, create and publish NuGet packages. There is also a tutorial about nuget package creating available.

Nested types and modules

TypeDescription
NuGetParams
OBSOLETE

Use Fake.DotNet.NuGet.NuGet instead

Nuget parameter type

NuSpecPackage
OBSOLETE

Use Fake.DotNet.NuGet.NuGet instead

NuSpec metadata type

NugetDependencies
OBSOLETE

Use Fake.DotNet.NuGet.NuGet instead

NugetFrameworkAssemblyReferences
OBSOLETE

Use Fake.DotNet.NuGet.NuGet instead

NugetFrameworkDependencies
OBSOLETE

Use Fake.DotNet.NuGet.NuGet instead

NugetFrameworkReferences
OBSOLETE

Use Fake.DotNet.NuGet.NuGet instead

NugetReferences
OBSOLETE

Use Fake.DotNet.NuGet.NuGet instead

NugetSymbolPackage
OBSOLETE

Use Fake.DotNet.NuGet.NuGet instead

Functions and values

Function or valueDescription
createNuSpecFromTemplate(...)
Signature: parameters:NuGetParams -> templateNuSpec:FileInfo -> string
Attributes:
[<Obsolete("Use Fake.DotNet.NuGet.NuGet instead")>]
OBSOLETE

Use Fake.DotNet.NuGet.NuGet instead

createNuSpecFromTemplateIfNotProjFile(...)
Signature: parameters:NuGetParams -> nuSpecOrProjFile:string -> string option
Attributes:
[<Obsolete("Use Fake.DotNet.NuGet.NuGet instead")>]
OBSOLETE

Use Fake.DotNet.NuGet.NuGet instead

feedUrl
Signature: string
Attributes:
[<Obsolete("Use Fake.DotNet.NuGet.NuGet instead")>]
OBSOLETE

Use Fake.DotNet.NuGet.NuGet instead

Default NuGet feed

getDependencies(packagesFile)
Signature: packagesFile:string -> (string * string) list
Attributes:
[<Obsolete("Use Fake.DotNet.NuGet.NuGet instead")>]
OBSOLETE

Use Fake.DotNet.NuGet.NuGet instead

Returns the dependencies from specified packages.config file

GetMetaDataFromPackageFile(...)
Signature: packageFileName:string -> NuSpecPackage
Attributes:
[<Obsolete("Use Fake.DotNet.NuGet.NuGet instead")>]
OBSOLETE

Use Fake.DotNet.NuGet.NuGet instead

Returns the NuGet meta data from the given package file name.

Parameters

  • packageFileName - The .nuspec package file name.
getNuspecProperties(nuspec)
Signature: nuspec:string -> NuSpecPackage
Attributes:
[<Obsolete("Use Fake.DotNet.NuGet.NuGet instead")>]
OBSOLETE

Use Fake.DotNet.NuGet.NuGet instead

Parses nuspec metadata from a nuspec file.

Parameters

  • nuspec - The .nuspec file content.
GetPackageVersion deploymentsDir package
Signature: deploymentsDir:string -> package:string -> string
Attributes:
[<Obsolete("Use Fake.DotNet.NuGet.NuGet instead")>]
OBSOLETE

Use Fake.DotNet.NuGet.NuGet instead

Gets the version no. for a given package in the deployments folder

NuGet setParams nuspecOrProjectFile
Signature: setParams:(NuGetParams -> NuGetParams) -> nuspecOrProjectFile:string -> unit
Attributes:
[<Obsolete("Use Fake.DotNet.NuGet.NuGet instead")>]
OBSOLETE

Use Fake.DotNet.NuGet.NuGet instead

Creates a new NuGet package, and optionally publishes it. Template parameter substitution is performed when passing a .nuspec

Parameters

  • setParams - Function used to manipulate the default NuGet parameters.
  • nuspecOrProjectFile - The .nuspec file name.
NuGetDefaults()
Signature: unit -> NuGetParams
Attributes:
[<Obsolete("Use Fake.DotNet.NuGet.NuGet instead")>]
OBSOLETE

Use Fake.DotNet.NuGet.NuGet instead

NuGet default parameters

NuGetPack setParams nuspecOrProjectFile
Signature: setParams:(NuGetParams -> NuGetParams) -> nuspecOrProjectFile:string -> unit
Attributes:
[<Obsolete("Use Fake.DotNet.NuGet.NuGet instead")>]
OBSOLETE

Use Fake.DotNet.NuGet.NuGet instead

Creates a new NuGet package based on the given .nuspec or project file. Template parameter substitution is performed when passing a .nuspec

Parameters

  • setParams - Function used to manipulate the default NuGet parameters.
  • nuspecOrProjectFile - The .nuspec or project file name.
NuGetPackDirectly(...)
Signature: setParams:(NuGetParams -> NuGetParams) -> nuspecOrProjectFile:string -> unit
Attributes:
[<Obsolete("Use Fake.DotNet.NuGet.NuGet instead")>]
OBSOLETE

Use Fake.DotNet.NuGet.NuGet instead

Creates a new NuGet package based on the given .nuspec or project file. The .nuspec / projectfile is passed as-is (no templating is performed)

Parameters

  • setParams - Function used to manipulate the default NuGet parameters.
  • nuspecOrProjectFile - The .nuspec or project file name.
NuGetPublish(setParams)
Signature: setParams:(NuGetParams -> NuGetParams) -> unit
Attributes:
[<Obsolete("Use Fake.DotNet.NuGet.NuGet instead")>]
OBSOLETE

Use Fake.DotNet.NuGet.NuGet instead

Publishes a NuGet package to the nuget server.

Parameters

  • setParams - Function used to manipulate the default NuGet parameters.
pack parameters nuspecFile
Signature: parameters:NuGetParams -> nuspecFile:string -> unit
Attributes:
[<Obsolete("Use Fake.DotNet.NuGet.NuGet instead")>]
OBSOLETE

Use Fake.DotNet.NuGet.NuGet instead

Creates a NuGet package without templating (including symbols package if enabled)

packageFileName(parameters)
Signature: parameters:NuGetParams -> string
Attributes:
[<Obsolete("Use Fake.DotNet.NuGet.NuGet instead")>]
OBSOLETE

Use Fake.DotNet.NuGet.NuGet instead

propertiesParam(_arg1)
Signature: _arg1:(string * string) list -> string
Attributes:
[<Obsolete("Use Fake.DotNet.NuGet.NuGet instead")>]
OBSOLETE

Use Fake.DotNet.NuGet.NuGet instead

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

Use Fake.DotNet.NuGet.NuGet instead

push package (and try again if something fails)

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

Use Fake.DotNet.NuGet.NuGet instead

push package to symbol server (and try again if something fails)

replaceAccessKeys parameters text
Signature: parameters:NuGetParams -> text:string -> string
Attributes:
[<Obsolete("Use Fake.DotNet.NuGet.NuGet instead")>]
OBSOLETE

Use Fake.DotNet.NuGet.NuGet instead

RequireExactly(version)
Signature: version:string -> string
Attributes:
[<Obsolete("Use Fake.DotNet.NuGet.NuGet instead")>]
OBSOLETE

Use Fake.DotNet.NuGet.NuGet instead

Creates a string which tells NuGet that you require exactly this package version.

webClient
Signature: WebClient
Attributes:
[<Obsolete("Use Fake.DotNet.NuGet.NuGet instead")>]
OBSOLETE

Use Fake.DotNet.NuGet.NuGet instead