Share via


Project.AddMetadataReferences(IEnumerable<MetadataReference>) Method

Definition

Creates a new instance of this project updated to include the specified metadata references in addition to already existing ones.

public:
 Microsoft::CodeAnalysis::Project ^ AddMetadataReferences(System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::MetadataReference ^> ^ metadataReferences);
public Microsoft.CodeAnalysis.Project AddMetadataReferences (System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.MetadataReference> metadataReferences);
member this.AddMetadataReferences : seq<Microsoft.CodeAnalysis.MetadataReference> -> Microsoft.CodeAnalysis.Project
Public Function AddMetadataReferences (metadataReferences As IEnumerable(Of MetadataReference)) As Project

Parameters

metadataReferences
IEnumerable<MetadataReference>

Returns

Applies to