Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / September 2005

Tip: Looking for answers? Try searching our database.

ProjectGUID via DTE ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tony Maresca - 08 Sep 2005 20:25 GMT
From this C# .csproj file excerpt:

<VisualStudioProject>
   <CSHARP
       ProjectType = "Local"
       ProductVersion = "7.10.3077"
       SchemaVersion = "2.0"
       ProjectGuid = "{490FC880-580D-484E-83BE-88027B59CF0E}"
   >...

I want to get the ProjectGuid via DTE, in my custom project
wizard's default.js. The Properties collection of the Project
object does not expose it. Does anyone know of any other
way to get it?

TIA.

Signature

Tony M.

Dmitry Shaporenkov - 20 Sep 2005 13:17 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.