SolutionInfo.Create 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Create(SolutionId, VersionStamp, String, IEnumerable<ProjectInfo>) |
建立 SolutionInfo 的新實例。 |
Create(SolutionId, VersionStamp, String, IEnumerable<ProjectInfo>, IEnumerable<AnalyzerReference>) |
建立 SolutionInfo 的新實例。 |
Create(SolutionId, VersionStamp, String, IEnumerable<ProjectInfo>)
建立 SolutionInfo 的新實例。
public static Microsoft.CodeAnalysis.SolutionInfo Create (Microsoft.CodeAnalysis.SolutionId id, Microsoft.CodeAnalysis.VersionStamp version, string filePath = default, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.ProjectInfo> projects = default);
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public static Microsoft.CodeAnalysis.SolutionInfo Create (Microsoft.CodeAnalysis.SolutionId id, Microsoft.CodeAnalysis.VersionStamp version, string? filePath, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.ProjectInfo>? projects);
public static Microsoft.CodeAnalysis.SolutionInfo Create (Microsoft.CodeAnalysis.SolutionId id, Microsoft.CodeAnalysis.VersionStamp version, string? filePath = default, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.ProjectInfo>? projects = default);
static member Create : Microsoft.CodeAnalysis.SolutionId * Microsoft.CodeAnalysis.VersionStamp * string * seq<Microsoft.CodeAnalysis.ProjectInfo> -> Microsoft.CodeAnalysis.SolutionInfo
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
static member Create : Microsoft.CodeAnalysis.SolutionId * Microsoft.CodeAnalysis.VersionStamp * string * seq<Microsoft.CodeAnalysis.ProjectInfo> -> Microsoft.CodeAnalysis.SolutionInfo
Public Shared Function Create (id As SolutionId, version As VersionStamp, Optional filePath As String = Nothing, Optional projects As IEnumerable(Of ProjectInfo) = Nothing) As SolutionInfo
Public Shared Function Create (id As SolutionId, version As VersionStamp, filePath As String, projects As IEnumerable(Of ProjectInfo)) As SolutionInfo
參數
- id
- SolutionId
- version
- VersionStamp
- filePath
- String
- projects
- IEnumerable<ProjectInfo>
傳回
- 屬性
適用於
Create(SolutionId, VersionStamp, String, IEnumerable<ProjectInfo>, IEnumerable<AnalyzerReference>)
建立 SolutionInfo 的新實例。
public static Microsoft.CodeAnalysis.SolutionInfo Create (Microsoft.CodeAnalysis.SolutionId id, Microsoft.CodeAnalysis.VersionStamp version, string? filePath = default, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.ProjectInfo>? projects = default, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference>? analyzerReferences = default);
static member Create : Microsoft.CodeAnalysis.SolutionId * Microsoft.CodeAnalysis.VersionStamp * string * seq<Microsoft.CodeAnalysis.ProjectInfo> * seq<Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference> -> Microsoft.CodeAnalysis.SolutionInfo
Public Shared Function Create (id As SolutionId, version As VersionStamp, Optional filePath As String = Nothing, Optional projects As IEnumerable(Of ProjectInfo) = Nothing, Optional analyzerReferences As IEnumerable(Of AnalyzerReference) = Nothing) As SolutionInfo
參數
- id
- SolutionId
- version
- VersionStamp
- filePath
- String
- projects
- IEnumerable<ProjectInfo>
- analyzerReferences
- IEnumerable<AnalyzerReference>