Solution.AddAnalyzerConfigDocument 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建一个新的解决方案实例,其中更新了相应的项目,以包含由其名称和文本定义的新的分析器配置文档实例。
public Microsoft.CodeAnalysis.Solution AddAnalyzerConfigDocument (Microsoft.CodeAnalysis.DocumentId documentId, string name, Microsoft.CodeAnalysis.Text.SourceText text, System.Collections.Generic.IEnumerable<string>? folders = default, string? filePath = default);
public Microsoft.CodeAnalysis.Solution AddAnalyzerConfigDocument (Microsoft.CodeAnalysis.DocumentId documentId, string name, Microsoft.CodeAnalysis.Text.SourceText text, System.Collections.Generic.IEnumerable<string> folders = default, string filePath = default);
member this.AddAnalyzerConfigDocument : Microsoft.CodeAnalysis.DocumentId * string * Microsoft.CodeAnalysis.Text.SourceText * seq<string> * string -> Microsoft.CodeAnalysis.Solution
Public Function AddAnalyzerConfigDocument (documentId As DocumentId, name As String, text As SourceText, Optional folders As IEnumerable(Of String) = Nothing, Optional filePath As String = Nothing) As Solution
参数
- documentId
- DocumentId
- name
- String
- text
- SourceText
- folders
- IEnumerable<String>
- filePath
- String