20. November 2008
Clemens
It’s not really a UML Profile update it’s actually more about Visual Studio Addin’s.
The UML Profile implementation and functionality in the previouse post I made with the CTP12 bits and that doesn’t work anymore in the current available CTP. Why not? VS Addin’s won’t work anymore… so you need to use a different approach to fire your commands. I explained the use of Addin and the UML Diagrams in this post “Rosario – Create Custom Team Architect UML Diagram-MenuItems ” but for some reason addin’s won’t work anymore. So, back to us progression providers, see this post “Rosario – Create your own Progression Provider “
A nice thing, found while digging in the problem, is that they are already using the C#4.0 dynamic type in the DTE namespace…
The use of this property should be something like this, I didn’t test this so I don’t know if this is going to work [found the get_CommandBars method using Reflector]:

In the previous version this command looks like this [won’t compile anymore in VS2010]:
This is the old DTE interface…

Anyway, not that important… although I planned some funny use of UML Profiles for today, that one have to wait now.
For more information on C#4.0 dynamic types see www.microsoftpdc.com and channel9.