How to make Visual Studio 2022 show ALL errors in the project?

I was making a web application and did some changes (like deleting files) that probably affected other files in the project. So I want to know what errors did those changes cause in the project. The problem is that Visual Studio 2022 shows only errors of OPEN files in the Error List.

For example, when ApplicationDbContext.cs is CLOSED:
Errors of ApplicationDbContext are not showing

When ApplicationDbContext.cs is OPEN:
Errors of ApplicationDbContext are showing

Errors in ApplicationDbContext.cs show up in the Error List ONLY if that file is OPEN.
Is there a way to make Visual Studio 2022 show ALL errors like this (image created for demonstration)?
All errors of the project are showing in the Error List even when the files are CLOSED

Read more here: Source link