Blog Clemens Reijnen

Recent posts

Tags

Categories

Navigation

Pages

Archive

Blogroll

    Disclaimer

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    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.

    Posted: Nov 20 2008, 17:17 by Clemens | Comments (5) RSS comment feed |
    • Currently 0/5 Stars.
    • 1
    • 2
    • 3
    • 4
    • 5
    Filed under:

    Comments

    Comments are closed