Workspace.CheckProjectHasProjectReference(ProjectId, ProjectReference) 方法

定义

如果项目没有特定的项目引用,则引发异常。

protected:
 void CheckProjectHasProjectReference(Microsoft::CodeAnalysis::ProjectId ^ fromProjectId, Microsoft::CodeAnalysis::ProjectReference ^ projectReference);
protected void CheckProjectHasProjectReference (Microsoft.CodeAnalysis.ProjectId fromProjectId, Microsoft.CodeAnalysis.ProjectReference projectReference);
member this.CheckProjectHasProjectReference : Microsoft.CodeAnalysis.ProjectId * Microsoft.CodeAnalysis.ProjectReference -> unit
Protected Sub CheckProjectHasProjectReference (fromProjectId As ProjectId, projectReference As ProjectReference)

参数

fromProjectId
ProjectId
projectReference
ProjectReference

适用于