Solution.WithProjectReferences 메서드

정의

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

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

매개 변수

projectId
ProjectId

참조를 바꿀 프로젝트의 ID입니다 projectReferences.

projectReferences
IEnumerable<ProjectReference>

새 프로젝트 참조입니다.

반환

예외

projectReferences에는 null가 포함됩니다.

projectReferences 에는 중복 항목이 포함되어 있습니다.

솔루션에 .projectId

적용 대상