Edit

Share via


dotnet reference list

This article applies to: ✔️ .NET Core 3.1 SDK and later versions

Name

dotnet reference list - Lists project-to-project references.

Note

If you're using .NET 9 SDK or earlier, use the "verb first" form (dotnet list reference) instead. The "noun first" form was introduced in .NET 10. For more information, see More consistent command order.

Synopsis

dotnet reference list [--project <PROJECT>]

dotnet reference list -h|--help

Description

The dotnet reference list command provides a convenient option to list project references for a given project.

Arguments

  • PROJECT

    The project file to operate on. If a file is not specified, the command will search the current directory for one.

Options

  • -?|-h|--help

    Prints out a description of how to use the command.

Examples

  • List the project references for the specified project:

    dotnet reference list --project app/app.csproj
    
  • List the project references for the project in the current directory:

    dotnet reference list