locked
Support for C# 4.0 features in VS Extensibility RRS feed

  • Question

  • Does the Visual Extensibility API provide support for C# 4.0 features-optional parameters and type dynamic?
    Tuesday, March 30, 2010 12:31 PM

Answers

  • I think he is referring to support in the FileCodeModel (EnvDTE).

    Since we are still waiting for proper support of Generics (.NET 2.0) and support for code inside methods , I don't think that extensibility of VS 2010 will cover new features of C# 4.0.


    FWIW, Microsoft is working in new language model in future versions of Visual Studio , so no enhancements (not even fixes) are done in the current one.


    MZ-Tools: Productivity add-ins for Visual Studio: http://www.mztools.com. My blog about developing add-ins: http://msmvps.com/blogs/carlosq/
    • Proposed as answer by Carlos J. Quintero Wednesday, March 31, 2010 12:21 PM
    • Marked as answer by Nancy Shao Monday, April 12, 2010 2:51 AM
    • Marked as answer by Nancy Shao Monday, April 12, 2010 2:51 AM
    Wednesday, March 31, 2010 12:21 PM

All replies

  • Hi Abhishek_kishore,

    Thanks for your post.

    Based on my understanding, C# 4.0 New Dynamic Types and Named/Optional Parameters is related to C# 4.0 compiler, it's unrelated to Visual Studio Extensibility, we can't get this feature from Visual Studio Extensibility API.  

    If I misunderstood you, or you have any comments, please feel free to let me know.

    Regards,

    Nancy Shao [MSFT]
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg @ microsoft.com


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Wednesday, March 31, 2010 2:19 AM
  • I think he is referring to support in the FileCodeModel (EnvDTE).

    Since we are still waiting for proper support of Generics (.NET 2.0) and support for code inside methods , I don't think that extensibility of VS 2010 will cover new features of C# 4.0.


    FWIW, Microsoft is working in new language model in future versions of Visual Studio , so no enhancements (not even fixes) are done in the current one.


    MZ-Tools: Productivity add-ins for Visual Studio: http://www.mztools.com. My blog about developing add-ins: http://msmvps.com/blogs/carlosq/
    • Proposed as answer by Carlos J. Quintero Wednesday, March 31, 2010 12:21 PM
    • Marked as answer by Nancy Shao Monday, April 12, 2010 2:51 AM
    • Marked as answer by Nancy Shao Monday, April 12, 2010 2:51 AM
    Wednesday, March 31, 2010 12:21 PM
  • Thanks for Carlos's sharing.

    Abhishek, does it helpful? Thanks.

    Regards,

    Nancy Shao [MSFT]
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg @ microsoft.com


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Wednesday, April 7, 2010 2:38 AM
  • I think Carlos has understood my problem. I wanted to know if Code Model might support information regarding the features I mentioned, and covariance/contravariance info as well.
    Thursday, April 22, 2010 4:32 PM