Solution.RemoveProjectReference(ProjectId, ProjectReference) 方法

定义

创建一个新的解决方案实例,其中指定的项目已更新,不再包含指定的项目引用。

public:
 Microsoft::CodeAnalysis::Solution ^ RemoveProjectReference(Microsoft::CodeAnalysis::ProjectId ^ projectId, Microsoft::CodeAnalysis::ProjectReference ^ projectReference);
public Microsoft.CodeAnalysis.Solution RemoveProjectReference (Microsoft.CodeAnalysis.ProjectId projectId, Microsoft.CodeAnalysis.ProjectReference projectReference);
member this.RemoveProjectReference : Microsoft.CodeAnalysis.ProjectId * Microsoft.CodeAnalysis.ProjectReference -> Microsoft.CodeAnalysis.Solution
Public Function RemoveProjectReference (projectId As ProjectId, projectReference As ProjectReference) As Solution

参数

projectId
ProjectId
projectReference
ProjectReference

返回

例外

projectReference 上声明的默认值为 null

解决方案不包含 projectId

适用于