Click or drag to resize

CSharpCompilationWithReferences Method (MetadataReference)



Creates a new compilation with the specified references.

Namespace:  Microsoft.CodeAnalysis.CSharp
Assembly:  Microsoft.CodeAnalysis.CSharp (in Microsoft.CodeAnalysis.CSharp.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public CSharpCompilation WithReferences(
	params MetadataReference[] references
)

Parameters

references
Type: Microsoft.CodeAnalysisMetadataReference

Return Value

Type: CSharpCompilation
See Also