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

專案的唯一識別碼。

IsSubmission

如果這是互動式會話的提交專案,則為 True。

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)

類別,表示建立新專案實例所需的所有引數。

適用於