What is the meaning of this variation of the CsProj project icon in Visual Studio 2022 Solution Explorer?
I’m using VS2022 and I have a mixture of class library and executable projects in my solution. Some of the projects are SDK-Style and some are the old format. Some of the libraries target netstandard2.0, but most projects target net48. Regardless of those details, all my projects have the same green-“C#”-in-a-box icons, except the second one shown below, which has some blue symbol overlaid on it. Hovering doesn’t help, they all just say “checked in”. The icon in question is a project that I just modified, so I’m wondering what I might have accidentally done to summon it.
Getting solution items from Visual Studio solution (.sln) file
I am using SolutionFile.Parse
from Microsoft.Build.Construction
(Microsoft.Build package version 17.10.4) to extract project information, but I also need to get solution items e.g. packages.props files. I can see that they occupy a “Solution Items” folder in the Visual Studio solution, but the parsed SolutionFile
object doesn’t contain this information; although a SolutionFolder
object representing that portion of the solution is present, the list of files as they appear in Visual Studio aren’t represented in the parsed object. What is the best approach to get at these details programmatically?