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