The csproj
files are Xml based files, so you can symply open the file, process the Xml and search for the file.
For files, you can find if a file is included in the project by searching in them searching for the Tag ItemGroup
and within ItemGroup
the Tag Compile
, if the file is for compilation, if not search within GroupItem
the None
or other according to the file nature
For searching for referenced projects you have to search in GroupItem
Tags about ProjectReference
Tag
There is other useful tags like Content for resources, None...etc.
I encourage you to open your csproj
in notepad++ and see what you can find, it is pretty simple.