Solution.AddAnalyzerReferences 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AddAnalyzerReferences(IEnumerable<AnalyzerReference>) |
建立更新的新解決方案實例,以包含指定的分析器參考。 |
AddAnalyzerReferences(ProjectId, IEnumerable<AnalyzerReference>) |
使用指定的專案建立新的方案實例,以包含指定的分析器參考。 |
AddAnalyzerReferences(IEnumerable<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 AddAnalyzerReferences (System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference> analyzerReferences);
member this.AddAnalyzerReferences : seq<Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference> -> Microsoft.CodeAnalysis.Solution
Public Function AddAnalyzerReferences (analyzerReferences As IEnumerable(Of AnalyzerReference)) As Solution
參數
- analyzerReferences
- IEnumerable<AnalyzerReference>
傳回
例外狀況
analyzerReferences
包含 null
。
analyzerReferences
包含重複的專案。
方案已經包含指定的參考。
適用於
AddAnalyzerReferences(ProjectId, IEnumerable<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 ^ AddAnalyzerReferences(Microsoft::CodeAnalysis::ProjectId ^ projectId, System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::Diagnostics::AnalyzerReference ^> ^ analyzerReferences);
public Microsoft.CodeAnalysis.Solution AddAnalyzerReferences (Microsoft.CodeAnalysis.ProjectId projectId, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference> analyzerReferences);
member this.AddAnalyzerReferences : Microsoft.CodeAnalysis.ProjectId * seq<Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference> -> Microsoft.CodeAnalysis.Solution
Public Function AddAnalyzerReferences (projectId As ProjectId, analyzerReferences As IEnumerable(Of AnalyzerReference)) As Solution
參數
- projectId
- ProjectId
- analyzerReferences
- IEnumerable<AnalyzerReference>
傳回
例外狀況
analyzerReferences
包含 null
。
analyzerReferences
包含重複的專案。
專案已經包含指定的參考。