Share via


Project.WithMetadataReferences(IEnumerable<MetadataReference>) Method

Definition

Creates a new instance of this project updated to replace existing metadata reference with the specified ones.

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

Parameters

metadataReferences
IEnumerable<MetadataReference>

Returns

Applies to