Partager via


Workspace.ApplyProjectReferenceAdded(ProjectId, ProjectReference) Méthode

Définition

Cette méthode est appelée pendant TryApplyChanges(Solution) l’ajout d’une référence de projet à un projet.

Remplacez cette méthode pour implémenter la fonctionnalité d’ajout de références de projet.

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)

Paramètres

projectId
ProjectId
projectReference
ProjectReference

S’applique à