Why does VisualStudio 17.10.5 ErrorList show misleading errors which disappears when the file is closed

Helgoy, Aksel 0 Reputation points
2024-09-05T10:29:26.6766667+00:00

When we change code in an existing .cs file, many CS0246, CS0103 and CS1674 error messages pop up. When the file is closed, the errors disappear. There are no compiler errors. The errors related to NLog (4.7.11) and DbContext in EntityFramework 6.4.4. It works fine in VS 17.2.6.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,044 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.