Click or drag to resize

WorkspaceCheckProjectDoesNotHaveAnalyzerReference Method



Throws an exception if a project already has a specific analyzer reference.

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 CheckProjectDoesNotHaveAnalyzerReference(
	ProjectId projectId,
	AnalyzerReference analyzerReference
)

Parameters

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