Click or drag to resize

CSharpCompilationAddReferences Method (MetadataReference)



Creates a new compilation with additional metadata 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 AddReferences(
	params MetadataReference[] references
)

Parameters

references
Type: Microsoft.CodeAnalysisMetadataReference

Return Value

Type: CSharpCompilation
See Also