Solution.AddAnalyzerReference 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
傳回
例外狀況
analyzerReference
為 null
。
適用於
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
傳回
例外狀況
analyzerReference
為 null
。
方案不包含 projectId
。