Solution.AddProjectReferences 메서드

정의

지정된 프로젝트 참조를 포함하도록 업데이트된 프로젝트를 사용하여 새 솔루션 인스턴스를 만듭니다.

public:
 Microsoft::CodeAnalysis::Solution ^ AddProjectReferences(Microsoft::CodeAnalysis::ProjectId ^ projectId, System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::ProjectReference ^> ^ projectReferences);
public Microsoft.CodeAnalysis.Solution AddProjectReferences (Microsoft.CodeAnalysis.ProjectId projectId, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.ProjectReference> projectReferences);
member this.AddProjectReferences : Microsoft.CodeAnalysis.ProjectId * seq<Microsoft.CodeAnalysis.ProjectReference> -> Microsoft.CodeAnalysis.Solution
Public Function AddProjectReferences (projectId As ProjectId, projectReferences As IEnumerable(Of ProjectReference)) As Solution

매개 변수

projectId
ProjectId
projectReferences
IEnumerable<ProjectReference>

반환

예외

projectReferences에는 null가 포함됩니다.

projectReferences 에는 중복 항목이 포함됩니다.

프로젝트 참조를 추가하면 순환 종속성이 생성될 수 있습니다.

적용 대상