IProjectContext 介面

定義

表示正在完成 Scaffolding 的專案資訊。

public interface class IProjectContext
public interface IProjectContext
type IProjectContext = interface
Public Interface IProjectContext
衍生

屬性

AssemblyFullPath

專案輸出的完整路徑。

AssemblyName

專案輸出的檔案名。

CompilationAssemblies

編譯專案所需的元件。

CompilationItems

專案包含在專案中進行編譯。 <編譯 Include=「」 />

Config

元件組態檔的完整路徑。 通常 AssemblyFullPath + 「.config」

Configuration

專案組態。

DepsFile

建置專案 deps.json 檔案的完整路徑。

EmbededItems

內嵌為內嵌資源的專案。 <EmbeddedResource Include=「」 />

IsClassLibrary

指定專案的輸出是否為類別庫。

PackageDependencies

專案的 NuGet 相依性。

PackagesDirectory

專案的 NuGet 套件根目錄。

Platform

以專案為目標的平臺。

ProjectFullPath

專案 csproj 檔案的完整路徑。

ProjectName

專案的名稱。

ProjectReferenceInformation

專案參考的相關資訊集合。

ProjectReferences

專案參考的路徑 (專案的直接和間接) 。

RootNamespace

專案的預設命名空間。

RuntimeConfig

專案 runtimeconfig.json 檔案的完整路徑。

TargetDirectory

輸出目錄的完整路徑。

TargetFramework

專案的 TargetFramework。 如果專案有多個架構,ProjectCoNtext 中的所有資訊都是此 TargetFramework 特有的。

擴充方法

GetPackage(IProjectContext, String)

表示正在完成 Scaffolding 的專案資訊。

GetReferencingPackages(IProjectContext, String)

表示正在完成 Scaffolding 的專案資訊。

適用於