locked
Can I develop VSTO 2005 SE plug-ins (Outlook 2003 and Outlook 2007) using Visual Studio 2008 Professional? RRS feed

  • Question

  • I want to use .NET 2.0 for a project, but at the same time I want to use VS 2008 SP1.

    A new requirement came in and now I also need to create two Outlook plug-ins that need to be compatible with .NET 2.0 and work for Outlook 2003 and Outlook 2007, and so I'm going with VSTO 2005 SE.

    Question: Can I create VSTO 2005 SE projects within Visual Studio 2008?

    I've been scanning the forums for related posts, and I'm thinking the process is:

    1) create the VSTO 2005 SE projects using Visual Studio 2005.  I need one for Outlook 2003 and a second project for Outlook 2007.

    2) Add the two projects to my Visual Studio 2008 solution, but be careful not to use the VSTO 2008 migration wizard so that I can continue to use the VSTO 2.0 runtime.  The following video is suppose to explain how to do this:

    http://blogs.msdn.com/vsto/archive/2008/07/24/automatic-project-conversion-migration-harry-miller.aspx

    Question: Is the above the best way to accomplish my objective?  (that being to use VS 2008 to develop VSTO 2005 SE plug-ins)

    ---

    Question: Finally, is there anyway I can create .NET 2.0 based plug-ins for Outlook 2003 and Outlook 2007 using VSTO 2008 SP1?  

    I just want to make sure I'm not missing anything before I do the above.   Within VS 2008, within the project creation wizard, if I select .NET 2.0 I only see project templates for Outlook 2003 and not any for Outlook 2007.

    Sunday, July 5, 2009 3:24 AM

Answers

  • Hello,

    In Visual Studio 2008 will be able choose the target farmework when we create the project, thus, in my mind, just start a Outlook 2003 project and target set to framework 2.0, we also could create a Outlook 2003 project and debug by using Office 2007 application, please refer to this link:

    http://blogs.msdn.com/vsto/archive/2008/03/20/developing-an-add-in-for-multiple-versions-of-office.aspx

    Here is the sample project of 2003 Office add-ins which is developed under Visual Studio 2008 sp1, may be you could modify them for your own usage:
    http://code.msdn.microsoft.com/VSTO2005SEMSI.

    Thanks
    We have published a VSTO FAQ recently, you can view them from the entry thread VSTO FAQ.
    If you have any feedbacks or suggestions on this FAQ, please feel free to write us emails to colbertz@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.
    • Proposed as answer by Tim Li Thursday, July 9, 2009 9:57 AM
    • Marked as answer by Tim Li Monday, July 13, 2009 2:17 AM
    Thursday, July 9, 2009 9:56 AM
  • Hi Tom

    One addendum to Tim's response:

    You can have only one version of Outlook installed on your development machine, and in your scenario this must be Outlook 2003. Your Outlook 2003 add-in could port to Outlook 2007 without needing any changes, but that's not guaranteed. (Depends on what you're using, etc.) This is why, when you choose the 2.0 version of the Framework you see only Office 2003 project templates. Add-ins developed of Office 2007, explicitly, use a newer version of the Framework (3.0 or 3.5) and will not run for 2003.
    Cindy Meister, VSTO/Word MVP
    • Marked as answer by Tim Li Monday, July 13, 2009 2:17 AM
    Thursday, July 9, 2009 2:15 PM

All replies

  • Hello,

    In Visual Studio 2008 will be able choose the target farmework when we create the project, thus, in my mind, just start a Outlook 2003 project and target set to framework 2.0, we also could create a Outlook 2003 project and debug by using Office 2007 application, please refer to this link:

    http://blogs.msdn.com/vsto/archive/2008/03/20/developing-an-add-in-for-multiple-versions-of-office.aspx

    Here is the sample project of 2003 Office add-ins which is developed under Visual Studio 2008 sp1, may be you could modify them for your own usage:
    http://code.msdn.microsoft.com/VSTO2005SEMSI.

    Thanks
    We have published a VSTO FAQ recently, you can view them from the entry thread VSTO FAQ.
    If you have any feedbacks or suggestions on this FAQ, please feel free to write us emails to colbertz@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.
    • Proposed as answer by Tim Li Thursday, July 9, 2009 9:57 AM
    • Marked as answer by Tim Li Monday, July 13, 2009 2:17 AM
    Thursday, July 9, 2009 9:56 AM
  • Hi Tom

    One addendum to Tim's response:

    You can have only one version of Outlook installed on your development machine, and in your scenario this must be Outlook 2003. Your Outlook 2003 add-in could port to Outlook 2007 without needing any changes, but that's not guaranteed. (Depends on what you're using, etc.) This is why, when you choose the 2.0 version of the Framework you see only Office 2003 project templates. Add-ins developed of Office 2007, explicitly, use a newer version of the Framework (3.0 or 3.5) and will not run for 2003.
    Cindy Meister, VSTO/Word MVP
    • Marked as answer by Tim Li Monday, July 13, 2009 2:17 AM
    Thursday, July 9, 2009 2:15 PM