共用方式為


Project.WithProjectReferences(IEnumerable<ProjectReference>) 方法

定義

建立已更新此專案的新實例,以以指定的專案取代現有的專案參考。

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

參數

projectReferences
IEnumerable<ProjectReference>

傳回

適用於