VS2010 UML Profiles update… C#4.0 dynamic type in DTE

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…

dynamiccomand

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]:

command...

In the previous version this command looks like this [won’t compile anymore in VS2010]:

command...old

This is the old DTE interface…

dynamiccomand old

 

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.

Comments (5) -

im glad it makes some updates

It’s not really a UML Profile update it’s actually more about Visual Studio Addin’s. I agree on what have you said!




They should really known the importance of a blogengine so that they can make their own,thanks for sharing it,

That is really a nice thing that have been found while digging in the problem. They are already using the C#4.0 dynamic type in the DTE namespace.

Blogengines is very useful nowadays, but it is more useful if it is updated. thanks fore the informations.

Add comment