Discussion:
Get project GUID via DTE (Extensibility)
(too old to reply)
Oleg Ogurok
2005-08-24 19:55:27 UTC
Permalink
Hi there,

Is there a way to get the Guid of a C# project within a solution (.SLN) file
using VS.NET 2003 extensibility? I am able to get DTE.Project object but
can't find a property that contains a Guid that would uniquely identify the
project.
There is DTE.Project.UniqueName but it returns
DirectoryName\ProjectName.csproj, which it unreliable since a user can
rename a project.

-Oleg.
Ashish Kaila
2005-08-28 21:40:46 UTC
Permalink
EnvDTE.Project.Kind property is what you should be looking at.
HTH
Ashish
Post by Oleg Ogurok
Hi there,
Is there a way to get the Guid of a C# project within a solution (.SLN) file
using VS.NET 2003 extensibility? I am able to get DTE.Project object but
can't find a property that contains a Guid that would uniquely identify the
project.
There is DTE.Project.UniqueName but it returns
DirectoryName\ProjectName.csproj, which it unreliable since a user can
rename a project.
-Oleg.
Loading...