Delen via


Project.WithProjectReferences(IEnumerable<ProjectReference>) Method

Definition

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

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

Parameters

projectReferences
IEnumerable<ProjectReference>

Returns

Applies to