SagiZiv
SagiZiv

Reputation: 1040

Can't add reference in visual studio 2019

I have recently upgraded to Visual Studio 2019, and I get a weird problem.

When I am trying to add a reference to the project, I get an error message that says "sequence contains no elements".

Do you know how to fix it? I have tried to reinstall, but for no avail…

Upvotes: 4

Views: 30855

Answers (2)

kevins1966
kevins1966

Reputation: 828

I had this issue with a test project I had renamed, when trying to get it to reference the project I wanted to test. I got over the issue by unloading and reloading the test project.

Upvotes: 0

Guy Cohen
Guy Cohen

Reputation: 759

  1. Click 'Project' menu
  2. Click 'Add Reference' sub menu
  3. Click 'Browse...' button
  4. In the file name texbox, paste : 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0' (or any other framework version)

Voila! - add the file you wish

Upvotes: 5

Related Questions