Paket


NuGetV2

Namespace: Paket

Contains NuGet support.

Functions and values

Function or valueDescription
CopyFromCache (...)
Signature: (root:string * groupName:GroupName * cacheFileName:string * licenseCacheFile:string * packageName:PackageName * version:SemVerInfo * includeVersionInPath:bool * force:bool * detailed:bool) -> Async<string>

Extracts the given package to the ./packages folder

CopyLicenseFromCache (...)
Signature: (root:string * groupName:GroupName * cacheFileName:string * packageName:PackageName * version:SemVerInfo * includeVersionInPath:bool * force:bool) -> Async<unit>
CopyToCache (cache, fileName, force)
Signature: (cache:Cache * fileName:string * force:bool) -> unit

Puts the package into the cache

DownloadLicense (...)
Signature: (root:'?9306 * force:bool * packageName:PackageName * version:SemVerInfo * licenseUrl:string * targetFileName:string) -> Async<unit>
Type parameters: '?9306
DownloadPackage (...)
Signature: (alternativeProjectRoot:string option * root:string * source:PackageSource * caches:Cache list * groupName:GroupName * packageName:PackageName * version:SemVerInfo * includeVersionInPath:bool * force:bool * detailed:bool) -> Async<string * string>

Downloads the given package to the NuGet Cache folder

ExtractPackage (...)
Signature: (fileName:string * targetFolder:string * packageName:PackageName * version:SemVerInfo * detailed:bool) -> Async<string>

Extracts the given package to the ./packages folder

ExtractPackageToUserFolder (...)
Signature: (fileName:string * packageName:PackageName * version:SemVerInfo * detailed:'a) -> Async<string>
Type parameters: 'a

Extracts the given package to the user folder

findLocalPackage (...)
Signature: directory:string -> packageName:PackageName -> version:SemVerInfo -> FileInfo
FindPackages (...)
Signature: (auth:NugetSourceAuthentication option * nugetURL:string * packageNamePrefix:string * maxResults:'c) -> Async<string []>
Type parameters: 'c

Uses the NuGet v2 API to retrieve all packages with the given prefix.

fixArchive fileName
Signature: fileName:string -> unit
fixDatesInArchive fileName
Signature: fileName:string -> unit
getAllVersionsFromLocalPath (...)
Signature: (isCache:bool * localNugetPath:string * package:PackageName * alternativeProjectRoot:string option * root:string) -> Async<string [] option>

Gets versions of the given package from local NuGet feed.

GetAnalyzerFiles targetFolder
Signature: targetFolder:string -> UnparsedPackageFile []

Finds all analyzer files in a nuget package.

getDetailsFromLocalNuGetPackage (...)
Signature: isCache:bool -> alternativeProjectRoot:string option -> root:string -> localNuGetPath:string -> packageName:PackageName -> version:SemVerInfo -> Async<NuGetPackageCache>

Reads direct dependencies from a nupkg file

getDetailsFromNuGet (...)
Signature: force:bool -> auth:Auth option -> nugetURL:string -> packageName:PackageName -> version:SemVerInfo -> Async<NuGetPackageCache>
getDetailsFromNuGetViaOData (...)
Signature: auth:Auth option -> nugetURL:string -> packageName:PackageName -> version:SemVerInfo -> Async<NuGetPackageCache>

Gets package details from NuGet via OData

getDetailsFromNuGetViaODataFast (...)
Signature: auth:Auth option -> nugetURL:string -> packageName:PackageName -> version:SemVerInfo -> Async<NuGetPackageCache>
GetLibFiles targetFolder
Signature: targetFolder:string -> UnparsedPackageFile []

Finds all libraries in a nuget package.

GetPackageDetails (...)
Signature: alternativeProjectRoot:string option -> root:string -> force:bool -> sources:PackageSource list -> groupName:'a -> packageName:PackageName -> version:SemVerInfo -> Async<PackageDetails>
Type parameters: 'a
getPackageNameFromLocalFile fileName
Signature: fileName:string -> string

Reads package name from a nupkg file

GetTargetsFiles targetFolder
Signature: targetFolder:string -> UnparsedPackageFile []

Finds all targets files in a nuget package.

GetVersions (...)
Signature: force:bool -> alternativeProjectRoot:string option -> root:string -> (sources:seq<PackageSource> * packageName:PackageName) -> Async<(SemVerInfo * PackageSource list) list>

Allows to retrieve all version no. for a package from the given sources.

getVersionsCached (...)
Signature: key:string -> f:('?9317 * '?9318 * '?9319 -> Async<'?9320 option>) -> (source:PackageSource * auth:'?9317 * nugetURL:'?9318 * package:'?9319) -> Async<'?9320 option>
Type parameters: '?9317, '?9318, '?9319, '?9320
isExtracted directory fileName
Signature: directory:DirectoryInfo -> fileName:string -> bool
IsPackageVersionExtracted (...)
Signature: (root:string * groupName:GroupName * packageName:PackageName * version:SemVerInfo * includeVersionInPath:bool) -> bool
parseODataDetails (...)
Signature: (url:string * nugetURL:string * packageName:PackageName * version:SemVerInfo * raw:string) -> NuGetPackageCache
protocolCache
Signature: ConcurrentDictionary<PackageSource,string>
tryGetAllVersionsFromNugetODataFindById (...)
Signature: (auth:Auth option * nugetURL:string * package:PackageName) -> Async<string [] option>
tryGetAllVersionsFromNugetODataFindByIdNewestFirst (...)
Signature: (auth:Auth option * nugetURL:string * package:PackageName) -> Async<string [] option>
tryGetAllVersionsFromNugetODataWithFilter (...)
Signature: (auth:Auth option * nugetURL:string * package:PackageName) -> Async<string [] option>
tryGetPackageVersionsViaJson (...)
Signature: (auth:Auth option * nugetURL:string * package:PackageName) -> Async<string [] option>
tryNuGetV3 (auth, nugetV3Url, package)
Signature: (auth:Auth option * nugetV3Url:string * package:PackageName) -> Async<string [] option>
urlSimilarToTfsOrVsts url
Signature: url:string -> bool
Fork me on GitHub