Click or drag to resize

WorkspaceApplyAnalyzerReferenceAdded Method



This method is called during TryApplyChanges(Solution) to add an analyzer reference to a project. Override this method to implement the capability of adding analyzer references.

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 virtual void ApplyAnalyzerReferenceAdded(
	ProjectId projectId,
	AnalyzerReference analyzerReference
)

Parameters

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