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?