Get-Project (Visual Studio 中的 封裝管理員 控制台)

僅適用於 Windows 上 Visual Studio 中的 封裝管理員 主控台

顯示預設或指定專案的相關信息。 Get-Project 特別傳回專案的Visual Studio DTE (開發工具環境) 對象的參考。

語法

Get-Project [[-Name] <string>] [-All] [<CommonParameters>]

參數

參數 描述:
Name 指定要顯示的項目,預設為 封裝管理員 控制台中選取的預設專案。 -Name 參數本身是選擇性的。
全部 顯示方案中每個項目的資訊;項目的順序不具決定性。

這些參數都不接受管線輸入或通配符。

一般參數

Get-Project 支援下列 常見的 PowerShell 參數:D ebug、Error Action、ErrorVariable、OutBuffer、OutVariable、PipelineVariable、Verbose、WarningAction 和 WarningVariable。

範例

# Displays information for the default project
Get-Project

# Displays information for a project in the solution
Get-Project MyProjectName

    # Displays information for all projects in the solution
Get-Project -All