I need to get the GUID
of a C# .proj
file using C#. I have taken from the .proj
file like reading the file using XML and getting the tag value.
//XML Tag
<ProjectGuid>{7701AEB4-8549-4FB2-B34C-E71D0B7DE59D}</ProjectGuid>
But i need to know is there any specific property in C# to retrieve the existing .proj file GUID, something like this.
//Code
int iIncriment = 0;
foreach (var objProj in vhaSolution.Projects)
{
EnvDTE.Project prj1 = (EnvDTE.Project)objProj;
iIncriment++;
if (string.Equals(testProjectName + ".proj", prj1.Name))
{
prj = vhaSolution.Projects.Item(iIncriment);
}
}
string GUID = prj.GetGUID() ???