Header menu logo F# Compiler Guide

DependencyProvider Type

Provides DependencyManagement functions. The class incrementally collects IDependencyManagerProvider, indexed by key, and queries them. These are found and instantiated with respect to the compilerTools and outputDir provided each time the TryFindDependencyManagerByKey and TryFindDependencyManagerInPath are executed, which are assumed to be invariant over the lifetime of the DependencyProvider.

Constructors

Constructor Description

DependencyProvider(assemblyProbingPaths, nativeProbingRoots, useResultsCache)

Full Usage: DependencyProvider(assemblyProbingPaths, nativeProbingRoots, useResultsCache)

Parameters:
Returns: DependencyProvider

Construct a new DependencyProvider with managed and native resolution and specify caching

assemblyProbingPaths : AssemblyResolutionProbe
nativeProbingRoots : NativeResolutionProbe
useResultsCache : bool
Returns: DependencyProvider

DependencyProvider(assemblyProbingPaths, nativeProbingRoots)

Full Usage: DependencyProvider(assemblyProbingPaths, nativeProbingRoots)

Parameters:
Returns: DependencyProvider

Construct a new DependencyProvider with managed and native resolution

assemblyProbingPaths : AssemblyResolutionProbe
nativeProbingRoots : NativeResolutionProbe
Returns: DependencyProvider

DependencyProvider(nativeProbingRoots, useResultsCache)

Full Usage: DependencyProvider(nativeProbingRoots, useResultsCache)

Parameters:
Returns: DependencyProvider

Construct a new DependencyProvider with only native resolution and specify caching

nativeProbingRoots : NativeResolutionProbe
useResultsCache : bool
Returns: DependencyProvider

DependencyProvider(nativeProbingRoots)

Full Usage: DependencyProvider(nativeProbingRoots)

Parameters:
Returns: DependencyProvider

Construct a new DependencyProvider with only native resolution

nativeProbingRoots : NativeResolutionProbe
Returns: DependencyProvider

DependencyProvider()

Full Usage: DependencyProvider()

Returns: DependencyProvider

Construct a new DependencyProvider with no dynamic load handlers (only for compilation/analysis)

Returns: DependencyProvider

Instance members

Instance member Description

this.ClearResultsCache

Full Usage: this.ClearResultsCache

Parameters:

Clear the DependencyManager results caches

arg0 : string seq
arg1 : string
arg2 : ResolvingErrorReport

this.CreatePackageManagerUnknownError

Full Usage: this.CreatePackageManagerUnknownError

Parameters:
Returns: int * string

Returns a formatted error message for the host to present

arg0 : string seq
arg1 : string
arg2 : string
arg3 : ResolvingErrorReport
Returns: int * string

this.GetRegisteredDependencyManagerHelpText

Full Usage: this.GetRegisteredDependencyManagerHelpText

Parameters:
Returns: string[]

Returns a formatted help messages for registered dependencymanagers for the host to present

arg0 : string seq
arg1 : string
arg2 : ResolvingErrorReport
Returns: string[]

this.Resolve

Full Usage: this.Resolve

Parameters:
    packageManager : IDependencyManagerProvider
    scriptExt : string
    packageManagerTextLines : (string * string) seq
    reportError : ResolvingErrorReport
    executionTfm : string
    ?executionRid : string
    ?implicitIncludeDir : string
    ?mainScriptName : string
    ?fileName : string
    ?timeout : int

Returns: IResolveDependenciesResult

Resolve reference for a list of package manager lines

packageManager : IDependencyManagerProvider
scriptExt : string
packageManagerTextLines : (string * string) seq
reportError : ResolvingErrorReport
executionTfm : string
?executionRid : string
?implicitIncludeDir : string
?mainScriptName : string
?fileName : string
?timeout : int
Returns: IResolveDependenciesResult

this.TryFindDependencyManagerByKey

Full Usage: this.TryFindDependencyManagerByKey

Parameters:
Returns: IDependencyManagerProvider MaybeNull

Fetch a dependencymanager that supports a specific key

compilerTools : string seq
outputDir : string
reportError : ResolvingErrorReport
key : string
Returns: IDependencyManagerProvider MaybeNull

this.TryFindDependencyManagerInPath

Full Usage: this.TryFindDependencyManagerInPath

Parameters:
Returns: string MaybeNull * IDependencyManagerProvider MaybeNull

TryFindDependencyManagerInPath - given a #r "key:sometext" go and find a DependencyManager that satisfies the key

compilerTools : string seq
outputDir : string
reportError : ResolvingErrorReport
path : string
Returns: string MaybeNull * IDependencyManagerProvider MaybeNull

Type something to start searching.