Hello Tony,
I was also looking for such a way and was unable to find it. This task, however,
can be solved with VSIP:
IVsHierarchy vsHierarchy;
...
Guid guid;
vsHierarchy.GetGuidProperty(VSProjectUtil.VSITEMID_ROOT, (int) __VSHPROPID.VSHPROPID_ProjectIDGuid,
out guid);
So you only need to retrieve the corresponding IVsHierarchy reference. Take
a look at VSIP docs.
Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
> From this C# .csproj file excerpt:
>
[quoted text clipped - 11 lines]
> way to get it?
> TIA.