Header menu logo F# Compiler Guide

FSharpReferencedProject Type

Union cases

Union case Description

FSharpReference(projectOutputFile, options)

Full Usage: FSharpReference(projectOutputFile, options)

Parameters:
    projectOutputFile : string - The fully qualified path to the output of the referenced project. This should be the same value as the -r reference in the project options for this referenced project.
    options : FSharpProjectOptions - The Project Options for this F# project

A reference for an F# project. The physical data for it is stored/cached inside of the compiler service.

projectOutputFile : string

The fully qualified path to the output of the referenced project. This should be the same value as the -r reference in the project options for this referenced project.

options : FSharpProjectOptions

The Project Options for this F# project

ILModuleReference(projectOutputFile, getStamp, getReader)

Full Usage: ILModuleReference(projectOutputFile, getStamp, getReader)

Parameters:
    projectOutputFile : string - The fully qualified path to the output of the referenced project. This should be the same value as the -r reference in the project options for this referenced project.
    getStamp : unit -> DateTime - A function that calculates a last-modified timestamp for this reference. This will be used to determine if the reference is up-to-date.
    getReader : unit -> ILModuleReader - A function that creates an ILModuleReader for reading module data.

A reference from an ILModuleReader.

projectOutputFile : string

The fully qualified path to the output of the referenced project. This should be the same value as the -r reference in the project options for this referenced project.

getStamp : unit -> DateTime

A function that calculates a last-modified timestamp for this reference. This will be used to determine if the reference is up-to-date.

getReader : unit -> ILModuleReader

A function that creates an ILModuleReader for reading module data.

PEReference(getStamp, delayedReader)

Full Usage: PEReference(getStamp, delayedReader)

Parameters:
    getStamp : unit -> DateTime - A function that calculates a last-modified timestamp for this reference. This will be used to determine if the reference is up-to-date.
    delayedReader : DelayedILModuleReader - A function that opens a Portable Executable data stream for reading.

A reference for any portable executable, including F#. The stream is owned by this reference. The stream will be automatically disposed when there are no references to FSharpReferencedProject and is GC collected. Once the stream is evaluated, the function that constructs the stream will no longer be referenced by anything. If the stream evaluation throws an exception, it will be automatically handled.

getStamp : unit -> DateTime

A function that calculates a last-modified timestamp for this reference. This will be used to determine if the reference is up-to-date.

delayedReader : DelayedILModuleReader

A function that opens a Portable Executable data stream for reading.

Instance members

Instance member Description

this.OutputFile

Full Usage: this.OutputFile

Returns: string

The fully qualified path to the output of the referenced project. This should be the same value as the -r reference in the project options for this referenced project.

Returns: string

Type something to start searching.