none
Office upgrade while Word Add-In installed [Word 2007 -> Office 2010] RRS feed

  • Question

  • Hello,

     

    I have developed and Office 2007 Word Add-In. The Add-In has creating targeting the .NET 3.5 framework and VSTO 3.0. Recently a system that had the Add-In installed on Office2007 got upgraded to Office2010. As a result all the dlls from Interop and Office that where targeting the PIA\Office12, changed to PIA\Office14. This generated dlls missing errors in the project as the v9.0 dlls that where in Office12 where missing in Office14.

     

    If there something that I am doing wrong in the reference add? If there a way to upgrade the office version and still maintain the functionality of the Add-In?

     

    Best regards,

    Silviu.
    http://www.rosoftlab.net/
    Monday, January 30, 2012 7:17 AM

All replies

  • PIA dlls have 12.0 and 14.0 versions appropriatly. By 9.0 most probably you mean VSTO helper dlls. PIA references can stay unchanged (if you do not need to use new APIs, just remember to deploy also PIAs), but you must change VSTO dlls references to 10.0
    Monday, January 30, 2012 1:12 PM
  • Hi Silviu

    I'm not certain I correctly understand your scenario.

    You should be able to install an Add-in developed for Office 2007 on an Office 2010 installation without changing anything. Office 2010 should install the VSTO loaders for both .NET 3.5 and .NET 4.0 and load the add-in.

    However, if you open the VSTO project in Visual Studio 2008 on a machine with Office 2010 installed you will run into problems as that version of VSTO is not compatible with Office 2010.

    You should be able to open it in VS 2010, but then you will have to change the references to fit the version of Office installed on the development machine. But if you do that, the compiled project will no longer run in Office 2007.


    Cindy Meister, VSTO/Word MVP
    Monday, January 30, 2012 1:26 PM
    Moderator
  • Hello Cindy,

     

    What I forgot to clarify is that I was talking about the deployed solution. I installed my Add-In via Click-Once setup on a station that had Office2007. I upgraded to Office2010. After the upgrade the Add-In did no longer find the dlls, as I mentioned in the first post.

    Hope this clarifies.

     

    Best regards,

    Silviu.


    http://www.rosoftlab.net/
    Monday, January 30, 2012 2:20 PM
  • Hi Silviu

    How do you know this? Show us the exact error information and explain exactly under what circumstances you're seeing it.


    Cindy Meister, VSTO/Word MVP
    Monday, January 30, 2012 2:51 PM
    Moderator
  • Hello Cindy,

     

    Unfortunatelly, I don`t have the error. It was reported by a costumer. I will try in the next days to reproduce it. I will come back with the findings and more details.

     

    Best regards,

    Silviu.


    http://www.rosoftlab.net/
    Tuesday, January 31, 2012 6:23 AM