Add reference in VS2022 has no Browse button

Didier Salle 21 Reputation points
2022-11-17T18:20:47.813+00:00

I am using VisualStudio 2022 on windows10 with a C++/CLI project
I need to ad a .dll file from .Net as reference to the project. So I did right click on the solutin explorer then Add / Reference.
I end up in a form but I cannot find my dll file because there is no "Browse: button !
This looks like a bug to me. See screen capture below.
261555-capture.png

Developer technologies C++
0 comments No comments
{count} votes

Accepted answer
  1. YujianYao-MSFT 4,296 Reputation points Microsoft External Staff
    2022-11-18T02:35:52.47+00:00

    Hi @Didier Salle ,

    Generally speaking, if you want to use C++\CLI you should create CLR project.

    261653-image.png

    I could see the Browse button here after clicking Add reference.

    261678-image.png

    If you want to use C# DLL in C++\CLI, I suggest you refer to this issue.

    Best regards,

    Elya


    If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


2 additional answers

Sort by: Most helpful
  1. Michael Taylor 60,161 Reputation points
    2022-11-17T19:52:38.337+00:00

    What version of .NET is your project targeting?
    Is the assembly reference to a framework binary or your own?

    0 comments No comments

  2. Didier Salle 21 Reputation points
    2022-11-22T13:11:06.51+00:00

    Thanks for your help on this issue. I will enter another issue for my oyjer issue.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.