Partager via


Workspace.CheckProjectDoesNotHaveAnalyzerReference Method

Definition

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

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

Parameters

projectId
ProjectId
analyzerReference
AnalyzerReference

Applies to