Share via


ProjectInfo 类

定义

一个类,表示创建新项目实例所需的所有参数。

public ref class ProjectInfo sealed
[System.Diagnostics.DebuggerDisplay("{GetDebuggerDisplay(), nq}")]
public sealed class ProjectInfo
[<System.Diagnostics.DebuggerDisplay("{GetDebuggerDisplay(), nq}")>]
type ProjectInfo = class
Public NotInheritable Class ProjectInfo
继承
ProjectInfo
属性

属性

AdditionalDocuments

与此项目关联的非源文档的列表。

AnalyzerConfigDocuments

与此项目关联的 analyzerconfig 文档列表。

AnalyzerReferences

最初与此项目关联的分析器。

AssemblyName

此项目将创建的程序集的名称,不带文件扩展名。

CompilationOptions

项目的初始编译选项;如果应使用默认选项,则为 null。

CompilationOutputInfo

编译器输出文件的路径 (模块或程序集) 。

Documents

最初与项目关联的源文档列表。

FilePath

项目文件的路径;如果没有项目文件,则为 null。

HostObjectType

主机对象的类型。

Id

项目的唯一 ID。

IsSubmission

如此 如果这是交互式会话的提交项目。

Language

项目的语言。

MetadataReferences

最初为项目定义的元数据引用。

Name

项目的名称。 这可能不同于项目的文件名。

OutputFilePath

输出文件的路径 (模块或程序集) 。

OutputRefFilePath

引用程序集输出文件的路径。

ParseOptions

此项目中源代码文档的初始分析选项;如果使用默认选项,则为 null。

ProjectReferences

最初为项目定义的项目引用。

Version

项目的版本。

方法

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

创建一 ProjectInfo个 . 的新实例。

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

创建一 ProjectInfo个 . 的新实例。

WithAdditionalDocuments(IEnumerable<DocumentInfo>)

一个类,表示创建新项目实例所需的所有参数。

WithAnalyzerConfigDocuments(IEnumerable<DocumentInfo>)

一个类,表示创建新项目实例所需的所有参数。

WithAnalyzerReferences(IEnumerable<AnalyzerReference>)

一个类,表示创建新项目实例所需的所有参数。

WithAssemblyName(String)

一个类,表示创建新项目实例所需的所有参数。

WithCompilationOptions(CompilationOptions)

一个类,表示创建新项目实例所需的所有参数。

WithCompilationOutputInfo(CompilationOutputInfo)

一个类,表示创建新项目实例所需的所有参数。

WithDefaultNamespace(String)

一个类,表示创建新项目实例所需的所有参数。

WithDocuments(IEnumerable<DocumentInfo>)

一个类,表示创建新项目实例所需的所有参数。

WithFilePath(String)

一个类,表示创建新项目实例所需的所有参数。

WithMetadataReferences(IEnumerable<MetadataReference>)

一个类,表示创建新项目实例所需的所有参数。

WithName(String)

一个类,表示创建新项目实例所需的所有参数。

WithOutputFilePath(String)

一个类,表示创建新项目实例所需的所有参数。

WithOutputRefFilePath(String)

一个类,表示创建新项目实例所需的所有参数。

WithParseOptions(ParseOptions)

一个类,表示创建新项目实例所需的所有参数。

WithProjectReferences(IEnumerable<ProjectReference>)

一个类,表示创建新项目实例所需的所有参数。

WithVersion(VersionStamp)

一个类,表示创建新项目实例所需的所有参数。

适用于