Home > Software design >  Why does Visual Studio 2022 suddenly stop showing errors?
Why does Visual Studio 2022 suddenly stop showing errors?

Time:02-03

As stated in the headline, Visual Studio 2022 suddenly stopped showing errors (and also I can't find public method and variables but that's another question).

enter image description here

I am working in Unity and suddenly it just don't want to cooperate anymore.

I tried closing the application and unity all together and restarted my computer, and nothing worked.

CodePudding user response:

One of the endless joys of working with Visual Studio are random inexplicable times it stops working the way it should. Usually these steps work:

  1. Close VS completely
  2. Ensure all bin and obj directories of all projects are cleared
  3. In the same directory as your solution should be a hidden .vs directory. Delete this.

Reopen VS and your solution. You should be back to a normal state within a few moments. Sometimes a "Rebuild All" can accelerate its return to normality too.

CodePudding user response:

This could be due to a variety of reasons such as a bug in the software, a misconfiguration, or an issue with the project or solution files. Here are a few steps you can try to resolve this issue:

  1. Try resetting Visual Studio settings to default
  2. Repair or reinstall Visual Studio
  3. Delete the suo file associated with the solution
  4. Check if there are any extensions causing the issue and try disabling them 5.Try opening a new project and see if the issue persists
  5. Delete the obj and bin folders in your solution and rebuild the solution. If none of these steps work, you can try reaching out to the Visual Studio support team for further assistance.
  • Related