dotnet list referencedotnet list reference

本主題適用於:✓ .NET Core 1.x SDK 和更新版本This topic applies to: ✓ .NET Core 1.x SDK and later versions

名稱Name

dotnet list reference - 列出專案對專案參考。dotnet list reference - Lists project-to-project references.

概要Synopsis

dotnet list [<PROJECT>|<SOLUTION>] reference [-h|--help]

說明Description

dotnet list reference 命令提供一個列出指定專案或解決方案之專案參考的便利選項。The dotnet list reference command provides a convenient option to list project references for a given project or solution.

引數Arguments

  • PROJECT | SOLUTION

    指定要用來列出參考的專案或解決方案檔。Specifies the project or solution file to use for listing references. 如果未指定,命令會在目前的目錄中搜尋專案檔。If not specified, the command searches the current directory for a project file.

選項Options

  • -h|--help

    印出命令的簡短說明。Prints out a short help for the command.

範例Examples

  • 列出指定專案的專案參考:List the project references for the specified project:

    dotnet list app/app.csproj reference
    
  • 列出目前目錄中專案的專案參考:List the project references for the project in the current directory:

    dotnet list reference