Logo Partas.TypeProvider

Runtime Module

Functions invoked from erased quotations - they run in the *consuming* program, not in the compiler, and must never throw.

Functions and values

Function or value Description

command verb projectPath extra

Full Usage: command verb projectPath extra

Parameters:
    verb : string
    projectPath : string
    extra : string list

Returns: string list

The argument list for `dotnet `, with `extra` appended. `run` is special-cased: it takes its project behind `--project`.

verb : string
projectPath : string
extra : string list
Returns: string list

commandString verb projectPath extra

Full Usage: commandString verb projectPath extra

Parameters:
    verb : string
    projectPath : string
    extra : string list

Returns: string
verb : string
projectPath : string
extra : string list
Returns: string

commandStringWithPropSetters verb projectPath extra propSetters

Full Usage: commandStringWithPropSetters verb projectPath extra propSetters

Parameters:
    verb : string
    projectPath : string
    extra : string
    propSetters : (string * string) list

Returns: string
verb : string
projectPath : string
extra : string
propSetters : (string * string) list
Returns: string

commandWithPropSetters verb projectPath extra propSetters

Full Usage: commandWithPropSetters verb projectPath extra propSetters

Parameters:
    verb : string
    projectPath : string
    extra : string list
    propSetters : (string * string) list

Returns: string list
verb : string
projectPath : string
extra : string list
propSetters : (string * string) list
Returns: string list

invalidate projectPath

Full Usage: invalidate projectPath

Parameters:
    projectPath : string

Drops everything read for `projectPath`, for a build that changes a project and then wants to read it back.

projectPath : string

isAvailable ()

Full Usage: isAvailable ()

Parameters:
    () : unit

Returns: bool

Whether a usable `dotnet` is on PATH in the consuming environment.

() : unit
Returns: bool

property projectPath name

Full Usage: property projectPath name

Parameters:
    projectPath : string
    name : string

Returns: string

The value of a single property. The first read of any project also fetches `defaultProperties`, so the members that share that batch cost one process between them.

projectPath : string
name : string
Returns: string

readProperties projectPath names

Full Usage: readProperties projectPath names

Parameters:
    projectPath : string
    names : string list

Returns: Map<string, string>

Runs `dotnet msbuild -getProperty:...` for `names`. Returns an empty map when the project cannot be evaluated, `dotnet` is missing, or the evaluation times out.

projectPath : string
names : string list
Returns: Map<string, string>

Type something to start searching.