Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015 Error List only showing errors for open files

I'm new to Visual Studio 2015. I'm working on porting a solution from VS 2010 to VS 2015 and Entity Framework and I'm working through the compile errors. Unfortunately, to get the error messages to display in the Error List, I have to open the files first. My filter options are "Entire Solution", the show errors is toggled on, warnings are off and "Build + IntelliSense" is selected.

With no files opened, I'm getting 5 errors but when I open one of my files with errors, the list then shows all the errors for that file as well. When I clost the file and rebuild, I'm back to the original 5 error messages. I've tried the different filter options in different combinations but I'm not able to get ALL the compile errors to be displayed. I have to open a few files, fix the compile errors, open a few more, and so on.

Does anyone know if there is a fix for this?

Thanks,

Carlo.

like image 670
Carlo Avatar asked Mar 10 '17 16:03

Carlo


Video Answer


1 Answers

I had similar problem with Code Analysis - VS 2017 Community 15.7.2 - this may be the same issue.

https://docs.microsoft.com/en-us/visualstudio/code-quality/how-to-enable-and-disable-full-solution-analysis-for-managed-code

To toggle full solution analysis:

  1. To open the Options dialog box, on the menu bar in Visual Studio choose Tools > Options.
  2. In the Options dialog box, choose Text Editor > C# or Basic > Advanced.
  3. Select the Enable full solution analysis check box to enable full solution analysis, or clear the box to disable it. Choose OK when you're done. I thought I had no warnings...now I have a few more!
like image 126
Etherman Avatar answered Oct 09 '22 06:10

Etherman