Click or drag to resize

WorkspaceOnAnalyzerReferenceAdded Method



Call this method when an analyzer reference is added to a project in the host environment.

Namespace:  Microsoft.CodeAnalysis
Assembly:  Microsoft.CodeAnalysis.Workspaces (in Microsoft.CodeAnalysis.Workspaces.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
protected void OnAnalyzerReferenceAdded(
	ProjectId projectId,
	AnalyzerReference analyzerReference
)

Parameters

projectId
Type: Microsoft.CodeAnalysisProjectId
analyzerReference
Type: Microsoft.CodeAnalysis.DiagnosticsAnalyzerReference
See Also