4

I've got a class library. I had created it with VS 2013 a few years ago. It has a References section where I can right click and Add Reference.

I just created a new c# class library in VS 2019 and References does not exist. It does have a Dependencies subgroup.

This seems like a newbie question but I can't find any suggestions of how to add Assembly References and can't think of what I'm missing.

Thanks for any help.

2
  • right click the project and add -> project reference Commented Jun 20, 2020 at 23:26
  • 1
    I tried that, but there is was no option to choose Assemblies. Commented Jun 21, 2020 at 5:04

2 Answers 2

5

I just figured it out. I had created a .NET Standard Library vs. .NET Framework. I just created a new project, chose .NET Framework class library and now I see Reference.

Sign up to request clarification or add additional context in comments.

Comments

1

If you right click on "Dependencies", there should be an option "Add Reference" - this will open the "References" window and you should be able to add packages, projects or .Net assemblies to the solution. They are then listed under "Dependencies".

1 Comment

That's the problem, I didn't see it just Add Reference. I did see that I had Add Project Reference. But I just figured it out and posted as the answer.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.