次の方法で共有


Workspace.ApplyProjectReferenceAdded(ProjectId, ProjectReference) メソッド

定義

このメソッドは、プロジェクトへのプロジェクト参照を追加するために呼び出 TryApplyChanges(Solution) されます。

プロジェクト参照を追加する機能を実装するには、このメソッドをオーバーライドします。

protected:
 virtual void ApplyProjectReferenceAdded(Microsoft::CodeAnalysis::ProjectId ^ projectId, Microsoft::CodeAnalysis::ProjectReference ^ projectReference);
protected virtual void ApplyProjectReferenceAdded (Microsoft.CodeAnalysis.ProjectId projectId, Microsoft.CodeAnalysis.ProjectReference projectReference);
abstract member ApplyProjectReferenceAdded : Microsoft.CodeAnalysis.ProjectId * Microsoft.CodeAnalysis.ProjectReference -> unit
override this.ApplyProjectReferenceAdded : Microsoft.CodeAnalysis.ProjectId * Microsoft.CodeAnalysis.ProjectReference -> unit
Protected Overridable Sub ApplyProjectReferenceAdded (projectId As ProjectId, projectReference As ProjectReference)

パラメーター

projectId
ProjectId
projectReference
ProjectReference

適用対象