Compartir a través de


Workspace.ApplyAnalyzerReferenceAdded(ProjectId, AnalyzerReference) Método

Definición

Se llama a este método durante TryApplyChanges(Solution) para agregar una referencia de analizador a un proyecto.

Invalide este método para implementar la funcionalidad de agregar referencias de analizador.

protected:
 virtual void ApplyAnalyzerReferenceAdded(Microsoft::CodeAnalysis::ProjectId ^ projectId, Microsoft::CodeAnalysis::Diagnostics::AnalyzerReference ^ analyzerReference);
protected virtual void ApplyAnalyzerReferenceAdded (Microsoft.CodeAnalysis.ProjectId projectId, Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference analyzerReference);
abstract member ApplyAnalyzerReferenceAdded : Microsoft.CodeAnalysis.ProjectId * Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference -> unit
override this.ApplyAnalyzerReferenceAdded : Microsoft.CodeAnalysis.ProjectId * Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference -> unit
Protected Overridable Sub ApplyAnalyzerReferenceAdded (projectId As ProjectId, analyzerReference As AnalyzerReference)

Parámetros

projectId
ProjectId
analyzerReference
AnalyzerReference

Se aplica a