I have a small program that retrieves the resource strings from the .resx files of the Projects in a Solution. The Project is accessed using Microsoft.Build.Execution.ProjectInstance() and we then iterate over the Microsoft.Build.Execution.ProjectItemInstance items in the Items collection.
It would be helpful in this program to extract the relationship between some of the .resx files and related items, for example, Form1.cs, Form1.resx, and Form1.fr-CA.resx. I can see in the .csproj file they are related using the DependentUpon property. Unfortunately that property doesn't appear to be exposed in Microsoft.Build.Execution.ProjectItemInstance.
How can I retrieve the DependentUpon property of an EmbeddedResource Item of a Project? The environment for this program is VS2015; the Solutions and Projects it is navigating are VS2008 Compact Framework 3.5.