Project.AddAnalyzerReference(AnalyzerReference) 方法

定义

创建更新了此项目的新实例,以包含指定的分析器引用,以及现有的分析器引用。

public:
 Microsoft::CodeAnalysis::Project ^ AddAnalyzerReference(Microsoft::CodeAnalysis::Diagnostics::AnalyzerReference ^ analyzerReference);
public Microsoft.CodeAnalysis.Project AddAnalyzerReference (Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference analyzerReference);
member this.AddAnalyzerReference : Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference -> Microsoft.CodeAnalysis.Project
Public Function AddAnalyzerReference (analyzerReference As AnalyzerReference) As Project

参数

analyzerReference
AnalyzerReference

返回

适用于