Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does this red minus overlay icon mean in Visual studio's Solution Explorer?

enter image description here

What does this red minus flag mean in visual studio?

like image 392
Jichao Avatar asked Sep 04 '12 08:09

Jichao


People also ask

What is the purpose of Solution Explorer in Visual Studio?

displays all the project items for the selected project, including those that have been excluded and those that are normally hidden. displays the properties for the selected item in the appropriate window. Double-clicking a script in the Solution Explorer opens the script in the Code Editor.

What is Solution Explorer in Visual Studio code?

Solution Explorer window lists all the projects and contained files. The window is used to navigate to files, include/exclude files from the project, manage project references and properties.

How do I get Solution Explorer back in Visual Studio?

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.


2 Answers

I believe this means the file is excluded from the build.

Note that this seems to be a bit different from "Exclude from project", in that the file shows up in the listing, but if you right-click on it and look at Properties > General, Exclude from build is set to Yes. If you set it to No, the red minus goes away.

One more datapoint, the project I imported started out as a VC6 project so this might be Visual Studio 2010's way of representing a legacy setting that was different than Exclude from Project.

The other comment about it indicating a missing item shows an exclamation point icon, not a minus.

like image 101
Shimona Carvalho Avatar answered Sep 18 '22 11:09

Shimona Carvalho


Red circle icon with white minus means that file is excluded from source code control. Right click on filter "Header files" for example and find out how "SCC Files" property is set. Probably is set to false, change it to true and icon will disappear.

like image 44
Dariusz Avatar answered Sep 18 '22 11:09

Dariusz