Paket


RestoreProcess

Namespace: Paket

Contains methods for the restore process.

Functions and values

Function or valueDescription
copiedElements
Signature: bool ref
CopyToCaches force caches fileName
Signature: force:bool -> caches:seq<Cache> -> fileName:string -> unit
createAlternativeNuGetConfig projectFile
Signature: projectFile:FileInfo -> unit
CreateInstallModel (...)
Signature: (alternativeProjectRoot:string option * root:string * groupName:GroupName * sources:PackageSource list * caches:Cache list * force:bool * package:PackageInfo) -> Async<(GroupName * PackageName) * (PackageInfo * InstallModel)>
createPaketCLIToolsFile (...)
Signature: cliTools:seq<ResolvedPackage> -> fileInfo:FileInfo -> unit
createPaketPropsFile cliTools fileInfo
Signature: cliTools:seq<ResolvedPackage> -> fileInfo:FileInfo -> unit
createProjectReferencesFiles (...)
Signature: lockFile:LockFile -> projectFile:ProjectFile -> referencesFile:ReferencesFile -> resolved:Lazy<Map<(GroupName * PackageName),PackageInfo>> -> groups:Map<GroupName,LockFileGroup> -> unit
CreateScriptsForGroups (...)
Signature: dependenciesFile:DependenciesFile -> lockFile:LockFile -> groups:Map<GroupName,LockFileGroup> -> unit
extractBuildTask root
Signature: root:string -> string
extractElement root name
Signature: root:string -> name:string -> string
ExtractPackage (...)
Signature: (alternativeProjectRoot:string option * root:string * groupName:GroupName * sources:PackageSource list * caches:Cache list * force:bool * package:PackageInfo * localOverride:bool) -> Async<PackageInfo * Lazy<NuGetPackageContent>>

Downloads and extracts a package. returns - package, libs files, props files, targets files, analyzers files

findAllReferencesFiles root
Signature: root:string -> Result<(ProjectFile * ReferencesFile) list,DomainMessage>
FindOrCreateReferencesFile projectFile
Signature: projectFile:ProjectFile -> ReferencesFile
FindPackagesNotExtractedYet (...)
Signature: dependenciesFileName:string -> (GroupName * PackageName) list

Finds packages which would be affected by a restore, i.e. not extracted yet or with the wrong version

Restore (...)
Signature: (dependenciesFileName:string * projectFile:string option * force:bool * group:GroupName option * referencesFileNames:string list * ignoreChecks:bool * failOnChecks:bool * targetFrameworks:string option) -> unit
RestoreNewSdkProject (...)
Signature: lockFile:LockFile -> resolved:Lazy<Map<(GroupName * PackageName),PackageInfo>> -> groups:Map<GroupName,LockFileGroup> -> projectFile:ProjectFile -> ReferencesFile
Fork me on GitHub