Solution.AddAnalyzerConfigDocument 方法

定义

创建一个新的解决方案实例,其中更新了相应的项目,以包含由其名称和文本定义的新的分析器配置文档实例。

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

返回

适用于