Partilhar via


Workspace.ApplyProjectReferenceAdded(ProjectId, ProjectReference) Método

Definição

Esse método é chamado durante TryApplyChanges(Solution) a adição de uma referência de projeto a um projeto.

Substitua esse método para implementar a capacidade de adicionar referências de projeto.

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)

Parâmetros

projectId
ProjectId
projectReference
ProjectReference

Aplica-se a