简体   繁体   中英

Visual Studio 2019: Intellisense does not recognize assemblies as referenced

I am encountering an annoying error. We have a solution that roughly consists of about 50 separate projects all being built and referenced to main project as dlls. In Visual Studio 2017 all is fine, no Intellisense errors, project builds and no errors are encountered.

Visual Studio 2019 displays missing assembly references eventhough I can successfully build and run the project:

在此处输入图像描述

What I have tried to overcome the error:

  • Cleaned and rebuilt the solution
  • Removed bin and obj folder of ALL projects as well as the hidden.vs folder in the solution - Built again: Same errors
  • Updated to newest Visual Studio version
  • Repaired Visual Studio and reinstalled ReSharper

I had no success with all of those steps. Does anyone have an idea on what else I could try?

I seem to have found a solution for my problem. This link and Andrei Romans answer helped. Basically it says:

Go to Tools -> Options -> Projects and Solutions -> General -> Uncheck "Allow parallel project initialization"

Then close the solution, restart it and finally rebuild the project. That worked for me - no more errors:-)

EDIT:

When branching and checking out the error persisted. What I did then is to check the usings that wheren´t recognized and un- and reloading the corresponding project. Currently my issues are resolved by this step.

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