Hi Sam,
CodeElement belongs to EnvDTE.dll, the extensibility model provided by
VS.NET 2002 and forward, which you can use also in VS 2005
CodeElement2 belongs to EnvDTE80.dll, an extension to the extensibility
model available only for VS 2005. Provides additional classes or methods. MS
can not touch EnvDTE.dll for compatibility reasons.
Bottom line:
- For VS.NET 2002/2003 add-ins, use CodeElement.
- For VS 2005 addins, if CodeElement is enough for your purposes, use it.
Otherwise, use CodeElement2 for additional method/properties.

Signature
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com
> What's the difference?
>
[quoted text clipped - 7 lines]
>
> SamP
SamP - 29 May 2006 16:20 GMT
Thank for the info.
SamP
> Hi Sam,
>
[quoted text clipped - 22 lines]
>>
>> SamP