What does this red minus flag mean 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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With