Freigeben über


Workspace.ApplyProjectReferenceAdded(ProjectId, ProjectReference) Methode

Definition

Diese Methode wird während TryApplyChanges(Solution) des Hinzufügens eines Projektverweiss zu einem Projekt aufgerufen.

Überschreiben Sie diese Methode, um die Funktion zum Hinzufügen von Projektbezügen zu implementieren.

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)

Parameter

projectId
ProjectId
projectReference
ProjectReference

Gilt für: