Skip to content

CLI should support adding references to DLLs #8627

Open

Description

@mairaw

Steps to reproduce

n/a

Expected behavior

Now that referencing DLLs are supported, I think there should be a way to do this via the CLI.
Perhaps dotnet add reference could support P2P references or DLLs?

Actual behavior

Only way to do this is modifying the project to use Reference instead of ProjectReference or PackageReference.

Environment data

dotnet --info output:
.NET Command Line Tools (2.0.0)

Product Information:
Version: 2.0.0
Commit SHA-1 hash: cdcd192

Runtime Environment:
OS Name: Windows
OS Version: 10.0.15063
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.0.0\

Microsoft .NET Core Shared Framework Host

Version : 2.0.0
Build : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d

Activity

  1. livarcocc commented on Nov 12, 2017

    @livarcocc
    Contributor

    cc @KathleenDollard for consideration. Putting it in the backlog for now.

  2. transferred this issue fromdotnet/clion Jan 31, 2020
  3. added this to the Backlog milestone on Jan 31, 2020
  4. niektuytel commented on Apr 11, 2022

    @niektuytel

    Do you have any update on this?
    (It has now more than 8 thumbs-up)

  5. github-actions commented on May 27, 2026

    @github-actions
    Contributor

    Due to lack of recent activity, this issue has been labeled as 'Stale'. It will be closed if no further activity occurs within 14 more days. Any new comment will remove the label.

  6. pedro-w commented on May 28, 2026

    @pedro-w

    I think this would be useful and is not supported in the current dotnet command, unless there is another recommended way to do it @mairaw ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions