共用方式為


Solution.AddAnalyzerReference 方法

定義

多載

AddAnalyzerReference(AnalyzerReference)

建立更新的新解決方案實例,以包含指定的分析器參考。

AddAnalyzerReference(ProjectId, AnalyzerReference)

建立新的方案實例,其中包含指定的更新專案,以包含指定的分析器參考。

AddAnalyzerReference(AnalyzerReference)

Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs

建立更新的新解決方案實例,以包含指定的分析器參考。

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

參數

analyzerReference
AnalyzerReference

傳回

例外狀況

analyzerReferencenull

適用於

AddAnalyzerReference(ProjectId, AnalyzerReference)

Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs

建立新的方案實例,其中包含指定的更新專案,以包含指定的分析器參考。

public:
 Microsoft::CodeAnalysis::Solution ^ AddAnalyzerReference(Microsoft::CodeAnalysis::ProjectId ^ projectId, Microsoft::CodeAnalysis::Diagnostics::AnalyzerReference ^ analyzerReference);
public Microsoft.CodeAnalysis.Solution AddAnalyzerReference (Microsoft.CodeAnalysis.ProjectId projectId, Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference analyzerReference);
member this.AddAnalyzerReference : Microsoft.CodeAnalysis.ProjectId * Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference -> Microsoft.CodeAnalysis.Solution
Public Function AddAnalyzerReference (projectId As ProjectId, analyzerReference As AnalyzerReference) As Solution

參數

projectId
ProjectId
analyzerReference
AnalyzerReference

傳回

例外狀況

analyzerReferencenull

方案不包含 projectId

適用於