Visual Studio errors disappear when open file

Viewed 42

I'm in the process of updating a library in a larger solution. For this purpose, I have removed the old references in all projects and added new ones.

If I compile the solution now I get about 3000 build errors, which indicate that various classes are defined in the old, removed libraries and I should add a reference to them.

After I have opened a reported file, Visual Studio recognizes that these classes are also included in the new libraries and removes the error.

Now I don't want to open hundreds of files to make these ghost errors disappear, especially because the problem repeats itself after the next build.

Does anyone have any idea how I can get Visual Studio to stop reporting ghost bugs?

I'm using Visual Studio 2022.

0 Answers
Related