简体   繁体   中英

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…

  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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM