none
Visual Studio 2008: VSTO for Office 2010 RRS feed

  • Question

  • Hi,

    I'm trying to start (and debug) a MS Word AddIn which was originally created for Office 2007. When I try to start, I get "You cannot debug or run this project, because the required version of the Microsoft Office application is not installed.".

    I don't find any setting for this required version 2007.

    Can I use the VSTO which were installed with the VS2008 setup also for Office 2010? Do I have to install anything additionally? Are there any settings in Visual Studio or in the project which apply for this?

    Thanks in advance,

    _Nikolaus


    _Nikolaus

    Tuesday, September 18, 2012 3:29 PM

Answers

  • Hi Nikolaus

    In order to debug an Office Add-in in Visual Studio 2008 you must have Office 2007 (and no other version) installed on the development machine. Office 2010 is not supported or recognized by VS 2008.

    Or, you must upgrade the project to Visual Studio 2010, but if Office 2010 is installed on that machine then there's a chance the add-in will no longer work for Office 2007.


    Cindy Meister, VSTO/Word MVP, my blog


    Tuesday, September 18, 2012 4:02 PM
    Moderator

All replies

  • Hi Nikolaus

    In order to debug an Office Add-in in Visual Studio 2008 you must have Office 2007 (and no other version) installed on the development machine. Office 2010 is not supported or recognized by VS 2008.

    Or, you must upgrade the project to Visual Studio 2010, but if Office 2010 is installed on that machine then there's a chance the add-in will no longer work for Office 2007.


    Cindy Meister, VSTO/Word MVP, my blog


    Tuesday, September 18, 2012 4:02 PM
    Moderator
  • I believe Cindy is correct. In VS2010, you can definately develop an add-in to target multiple versions of Office as long as you use features that are available in all versions that you want to support. I am just not confident that VS 2008 provides that same flexibility. For fun you could try opening your project properties and setting the "Start external program" setting to the path of the Office 2010 application that you want to start when you press F5. In VS 2010, that setting appears as follows:


    Norm Estabrook

    Tuesday, September 18, 2012 10:49 PM
    Answerer
  • Hi Cindy,

    thanks a lot. I thought VS2008 could also work with Office 2007. Now I installed VS2010, converted the project and could deploy to Word 2010 and could also start it from VS.

    Regards,

    _Nikolaus


    _Nikolaus

    Wednesday, September 19, 2012 11:58 AM