Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does the small preceding red minus icon mean in my Visual Studio Solution Explorer?

Recently a preceding small red icon started to appear before some of my VS 2015 Solution Explorer. I definitely remember it was not there some days before.

I think it has something to do with git source control what I am using (not sure), but can not figure what is it.

* edit *

Added more diagnostics:

  • The files can be opened by double click
  • The tracking does not work for these files (I mean not activated in Solution Explorer when switching to the editor tab for that file)
  • Editing and saving does not help
  • Close/Reopen VS does not help
  • Refresh does not help

* end edit *

enter image description here

like image 278
g.pickardou Avatar asked Sep 18 '15 10:09

g.pickardou


People also ask

What is the red check mark in Visual Studio?

The red check marks indicate that there has been a change to the file. Many of these answers for previous versions of Visual Studio seem correct.

What is displayed in the Solution Explorer window?

The Solution Explorer tool window displays a solution and the project items created for this solution, for example, a business object or a screen. In the Solution Explorer, you can open items for editing and add new items to a solution. You can also search for files within a solution.

How do I get Visual Studio back in Solution Explorer?

If you don't see the Solution Explorer tool window, you can open it from the Visual Studio menu bar by using View > Solution Explorer, or by pressing Ctrl+Alt+L.

What is a function of the Solution Explorer window in Visual Studio?

Solution Explorer is a special window that enables you to manage solutions, projects, and files. It provides a complete view of the files in a project, and it enables you to add or remove files and to organize files into subfolders.


2 Answers

According to the version control icon documentation, it indicates files that have been excluded from version control, for example in the .gitingore file.

Icon for excluded from version control

However, in my case with Visual Studio Community 2015 Update 2, those icons also show up when I create a new project. Even if none of the created files are explicitly ignored through .gitignore. The icons disappear once I've committed the changes.

like image 136
Lernkurve Avatar answered Oct 09 '22 08:10

Lernkurve


For those who are getting this on Visual Studio 2019, I found that clicking on "Add Ignored File File to Source Control" under Source Control solved this for me and finally added the files for commit on my Git repository:

Add Ignored File

like image 6
Andre Batista Avatar answered Oct 09 '22 09:10

Andre Batista