ProjectInfo.Create 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Create(ProjectId, VersionStamp, String, String, String, String, String, CompilationOptions, ParseOptions, IEnumerable<DocumentInfo>, IEnumerable<ProjectReference>, IEnumerable<MetadataReference>, IEnumerable<AnalyzerReference>, IEnumerable<DocumentInfo>, Boolean, Type)
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
创建一个新实例 ProjectInfo。
public:
static Microsoft::CodeAnalysis::ProjectInfo ^ Create(Microsoft::CodeAnalysis::ProjectId ^ id, Microsoft::CodeAnalysis::VersionStamp version, System::String ^ name, System::String ^ assemblyName, System::String ^ language, System::String ^ filePath, System::String ^ outputFilePath, Microsoft::CodeAnalysis::CompilationOptions ^ compilationOptions, Microsoft::CodeAnalysis::ParseOptions ^ parseOptions, System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::DocumentInfo ^> ^ documents, System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::ProjectReference ^> ^ projectReferences, System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::MetadataReference ^> ^ metadataReferences, System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::Diagnostics::AnalyzerReference ^> ^ analyzerReferences, System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::DocumentInfo ^> ^ additionalDocuments, bool isSubmission, Type ^ hostObjectType);
public static Microsoft.CodeAnalysis.ProjectInfo Create (Microsoft.CodeAnalysis.ProjectId id, Microsoft.CodeAnalysis.VersionStamp version, string name, string assemblyName, string language, string filePath, string outputFilePath, Microsoft.CodeAnalysis.CompilationOptions compilationOptions, Microsoft.CodeAnalysis.ParseOptions parseOptions, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.DocumentInfo> documents, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.ProjectReference> projectReferences, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.MetadataReference> metadataReferences, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference> analyzerReferences, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.DocumentInfo> additionalDocuments, bool isSubmission, Type hostObjectType);
public static Microsoft.CodeAnalysis.ProjectInfo Create (Microsoft.CodeAnalysis.ProjectId id, Microsoft.CodeAnalysis.VersionStamp version, string name, string assemblyName, string language, string? filePath, string? outputFilePath, Microsoft.CodeAnalysis.CompilationOptions? compilationOptions, Microsoft.CodeAnalysis.ParseOptions? parseOptions, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.DocumentInfo>? documents, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.ProjectReference>? projectReferences, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.MetadataReference>? metadataReferences, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference>? analyzerReferences, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.DocumentInfo>? additionalDocuments, bool isSubmission, Type? hostObjectType);
static member Create : Microsoft.CodeAnalysis.ProjectId * Microsoft.CodeAnalysis.VersionStamp * string * string * string * string * string * Microsoft.CodeAnalysis.CompilationOptions * Microsoft.CodeAnalysis.ParseOptions * seq<Microsoft.CodeAnalysis.DocumentInfo> * seq<Microsoft.CodeAnalysis.ProjectReference> * seq<Microsoft.CodeAnalysis.MetadataReference> * seq<Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference> * seq<Microsoft.CodeAnalysis.DocumentInfo> * bool * Type -> Microsoft.CodeAnalysis.ProjectInfo
Public Shared Function Create (id As ProjectId, version As VersionStamp, name As String, assemblyName As String, language As String, filePath As String, outputFilePath As String, compilationOptions As CompilationOptions, parseOptions As ParseOptions, documents As IEnumerable(Of DocumentInfo), projectReferences As IEnumerable(Of ProjectReference), metadataReferences As IEnumerable(Of MetadataReference), analyzerReferences As IEnumerable(Of AnalyzerReference), additionalDocuments As IEnumerable(Of DocumentInfo), isSubmission As Boolean, hostObjectType As Type) As ProjectInfo
参数
- id
- ProjectId
- version
- VersionStamp
- name
- String
- assemblyName
- String
- language
- String
- filePath
- String
- outputFilePath
- String
- compilationOptions
- CompilationOptions
- parseOptions
- ParseOptions
- documents
- IEnumerable<DocumentInfo>
- projectReferences
- IEnumerable<ProjectReference>
- metadataReferences
- IEnumerable<MetadataReference>
- analyzerReferences
- IEnumerable<AnalyzerReference>
- additionalDocuments
- IEnumerable<DocumentInfo>
- isSubmission
- Boolean
- hostObjectType
- Type
返回
适用于
Create(ProjectId, VersionStamp, String, String, String, String, String, CompilationOptions, ParseOptions, IEnumerable<DocumentInfo>, IEnumerable<ProjectReference>, IEnumerable<MetadataReference>, IEnumerable<AnalyzerReference>, IEnumerable<DocumentInfo>, Boolean, Type, String)
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
- Source:
- ProjectInfo.cs
创建一个新实例 ProjectInfo。
public static Microsoft.CodeAnalysis.ProjectInfo Create (Microsoft.CodeAnalysis.ProjectId id, Microsoft.CodeAnalysis.VersionStamp version, string name, string assemblyName, string language, string filePath = default, string outputFilePath = default, Microsoft.CodeAnalysis.CompilationOptions compilationOptions = default, Microsoft.CodeAnalysis.ParseOptions parseOptions = default, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.DocumentInfo> documents = default, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.ProjectReference> projectReferences = default, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.MetadataReference> metadataReferences = default, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference> analyzerReferences = default, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.DocumentInfo> additionalDocuments = default, bool isSubmission = false, Type hostObjectType = default, string outputRefFilePath = default);
public static Microsoft.CodeAnalysis.ProjectInfo Create (Microsoft.CodeAnalysis.ProjectId id, Microsoft.CodeAnalysis.VersionStamp version, string name, string assemblyName, string language, string? filePath = default, string? outputFilePath = default, Microsoft.CodeAnalysis.CompilationOptions? compilationOptions = default, Microsoft.CodeAnalysis.ParseOptions? parseOptions = default, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.DocumentInfo>? documents = default, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.ProjectReference>? projectReferences = default, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.MetadataReference>? metadataReferences = default, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference>? analyzerReferences = default, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.DocumentInfo>? additionalDocuments = default, bool isSubmission = false, Type? hostObjectType = default, string? outputRefFilePath = default);
static member Create : Microsoft.CodeAnalysis.ProjectId * Microsoft.CodeAnalysis.VersionStamp * string * string * string * string * string * Microsoft.CodeAnalysis.CompilationOptions * Microsoft.CodeAnalysis.ParseOptions * seq<Microsoft.CodeAnalysis.DocumentInfo> * seq<Microsoft.CodeAnalysis.ProjectReference> * seq<Microsoft.CodeAnalysis.MetadataReference> * seq<Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference> * seq<Microsoft.CodeAnalysis.DocumentInfo> * bool * Type * string -> Microsoft.CodeAnalysis.ProjectInfo
Public Shared Function Create (id As ProjectId, version As VersionStamp, name As String, assemblyName As String, language As String, Optional filePath As String = Nothing, Optional outputFilePath As String = Nothing, Optional compilationOptions As CompilationOptions = Nothing, Optional parseOptions As ParseOptions = Nothing, Optional documents As IEnumerable(Of DocumentInfo) = Nothing, Optional projectReferences As IEnumerable(Of ProjectReference) = Nothing, Optional metadataReferences As IEnumerable(Of MetadataReference) = Nothing, Optional analyzerReferences As IEnumerable(Of AnalyzerReference) = Nothing, Optional additionalDocuments As IEnumerable(Of DocumentInfo) = Nothing, Optional isSubmission As Boolean = false, Optional hostObjectType As Type = Nothing, Optional outputRefFilePath As String = Nothing) As ProjectInfo
参数
- id
- ProjectId
- version
- VersionStamp
- name
- String
- assemblyName
- String
- language
- String
- filePath
- String
- outputFilePath
- String
- compilationOptions
- CompilationOptions
- parseOptions
- ParseOptions
- documents
- IEnumerable<DocumentInfo>
- projectReferences
- IEnumerable<ProjectReference>
- metadataReferences
- IEnumerable<MetadataReference>
- analyzerReferences
- IEnumerable<AnalyzerReference>
- additionalDocuments
- IEnumerable<DocumentInfo>
- isSubmission
- Boolean
- hostObjectType
- Type
- outputRefFilePath
- String