共用方式為


Project.AddProjectReference(ProjectReference) 方法

定義

建立已更新此專案的新實例,以包含指定的專案參考,以及已經存在的專案參考。

public:
 Microsoft::CodeAnalysis::Project ^ AddProjectReference(Microsoft::CodeAnalysis::ProjectReference ^ projectReference);
public Microsoft.CodeAnalysis.Project AddProjectReference (Microsoft.CodeAnalysis.ProjectReference projectReference);
member this.AddProjectReference : Microsoft.CodeAnalysis.ProjectReference -> Microsoft.CodeAnalysis.Project
Public Function AddProjectReference (projectReference As ProjectReference) As Project

參數

projectReference
ProjectReference

傳回

適用於