Sdílet prostřednictvím


ProjectInfo.Create Method

Definition

Overloads

Create(ProjectId, VersionStamp, String, String, String, String, String, CompilationOptions, ParseOptions, IEnumerable<DocumentInfo>, IEnumerable<ProjectReference>, IEnumerable<MetadataReference>, IEnumerable<AnalyzerReference>, IEnumerable<DocumentInfo>, Boolean, Type)

Create a new instance of a ProjectInfo.

Create(ProjectId, VersionStamp, String, String, String, String, String, CompilationOptions, ParseOptions, IEnumerable<DocumentInfo>, IEnumerable<ProjectReference>, IEnumerable<MetadataReference>, IEnumerable<AnalyzerReference>, IEnumerable<DocumentInfo>, Boolean, Type, String)

Create a new instance of a ProjectInfo.

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
Source:
ProjectInfo.cs

Create a new instance of a 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

Parameters

version
VersionStamp
name
String
assemblyName
String
language
String
filePath
String
outputFilePath
String
compilationOptions
CompilationOptions
parseOptions
ParseOptions
projectReferences
IEnumerable<ProjectReference>
metadataReferences
IEnumerable<MetadataReference>
analyzerReferences
IEnumerable<AnalyzerReference>
additionalDocuments
IEnumerable<DocumentInfo>
isSubmission
Boolean
hostObjectType
Type

Returns

Applies to

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
Source:
ProjectInfo.cs

Create a new instance of a 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

Parameters

version
VersionStamp
name
String
assemblyName
String
language
String
filePath
String
outputFilePath
String
compilationOptions
CompilationOptions
parseOptions
ParseOptions
projectReferences
IEnumerable<ProjectReference>
metadataReferences
IEnumerable<MetadataReference>
analyzerReferences
IEnumerable<AnalyzerReference>
additionalDocuments
IEnumerable<DocumentInfo>
isSubmission
Boolean
hostObjectType
Type
outputRefFilePath
String

Returns

Applies to