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 / IDE / January 2006

Tip: Looking for answers? Try searching our database.

Automation Extender for VS.NET Solution Explorer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Curedone - 18 Oct 2004 12:53 GMT
Hello,

I have been trying to create properties extender for Solution Explorer items
in VS.NET 2003. The items i am interested in are solution, solution files,
project, project files and project folders.

It appears while some of the items can be extended (most notable solution as
presented in MS Solution Extender Sample; also CSharp/VB projects), there is
no way to extend others - for example C++ projects or files, etc. The
registration entries were made in the same manner for CATIDs that work and
for those that did not (under .../Visual Studio/7.1/Extenders hive).

I have tried to use any CATID i could find for that purpose (started from
prjCATIDProject = "{610D4614-D0D5-11D2-8599-006097C68E81}",
prjCATIDProjectItem = "{610D4615-D0D5-11D2-8599-006097C68E81}"), but i could
not either make it work or understand why it does.

The impressions i had is that some categories are just not implemented.

It would be very helpful to have some hint where those categories documented
and how one can make it work.

If MS (or anyone) is interested in repro case, i will semd it up at first
notice.

Thank you beforehand,

WBR, Curedone
Bob Steagall - 18 Oct 2004 18:30 GMT
Here are the CATIDs I use for an add-in that includes extenders for VC
projects, VC filters, and VC files:

 String VCFileCATID          = "{610D461F-D0D5-11D2-8599-006097C68E81}";
 String VCFileBrowseCATID    = "{EE8299C9-19B6-4F20-ABEA-E1FD9A33B683}";
 String VCFilterCATID        = "{610D461D-D0D5-11D2-8599-006097C68E81}";
 String VCFilterBrowseCATID  = "{EE8299CA-19B6-4F20-ABEA-E1FD9A33B683}";
 String VCProjectCATID       = "{610D461E-D0D5-11D2-8599-006097C68E81}";
 String VCProjectBrowseCATID = "{EE8299CB-19B6-4F20-ABEA-E1FD9A33B683}";
 String SolutionCATID        = "{52AEFF70-BBD8-11D2-8598-006097C68E81}";
 String SolutionBrowseCATID  = "{A2392464-7C22-11D3-BDCA-00C04F688E50}";

Note that it is the browse CATIDs you want if you are trying extend the
properties displayed when a solution, VC project, VC filter, or VC file
is selected in the Solution Explorer.

----------------

--Bob

Bob Steagall
Medical Numerics, Inc.

>Hello,
>
[quoted text clipped - 24 lines]
>
>WBR, Curedone
rdrenker - 03 Jan 2006 21:45 GMT
Hi Bob,

Thanks for the post about the CATID's - they were very helpful!

I'm working on extending the properties available within C# projects, and as
such I'm using the prjCATIDCSharpProjectBrowseObject = {4EF9F003-DE95-4d60-
96B0-212979F2A857}

Everything works fine re: CanExtend gets fired when on a C# project and I
return true after a quick test of the inbound ExtenderCATID.

Next I implemented the GetExtender method...

public object GetExtender(string ExtenderCATID, string ExtenderName, object
ExtendeeObject, EnvDTE.IExtenderSite ExtenderSite, int Cookie)
           
...and this is where I'm running into troubles - I'm having a hard time
trying to determine what type the ExtendeeObject is.  I've tried checking it
against pretty much everything in EnvDTE, EnvDTE80 and the VSLangProjXX DLLs
with no luck.

I have been "cheating" in the meantime by going after the DTE.SelectedItems.
Item(1).Project, however this doesn't feel right since I'm assuming that the
passed in ExtendeeObject has all the information I need.

Can you (or any other generous coder out there) shed some light on what
ExtendeeObject is?

>Here are the CATIDs I use for an add-in that includes extenders for VC
>projects, VC filters, and VC files:
[quoted text clipped - 24 lines]
>>
>>WBR, Curedone

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.