2012-09-28 81 views
0

我使用Visual Studio 2005開發了一個Office 2003加載項。但是在unistall Office 2003和intall Office 2010 x64之後,我的項目停止工作。VSTO:帶有Office 2010的Visual Studio 2005 64

這是目前一些錯誤:

Error 7 The type or namespace name 'IRibbonControl' could not be found (are you missing a using directive or an assembly reference?) x.cs 83 45 x 
Error 5 The type or namespace name 'IRibbonUI' could not be found (are you missing a using directive or an assembly reference?) x.cs 358 38 x 
Error 3 The type or namespace name 'IRibbonExtensibility' does not exist in the namespace 'Microsoft.Office.Core' (are you missing an assembly reference?) x.cs 45 43 x 

有一些辦法讓我的外接程序運行?

回答

3

不知道,如果你已經看到了這一點或沒有,但這裏的一些解釋:

Office 2010的32位應該運行VSTO 2005 SE插件沒有 修改,但Office 2010的64位將不加載VSTO 2005 SE 加載項。需要在Visual Studio爲Office 第二版運行2005和工具

Office解決方案不符合 微軟Office 2010的64位版本,兼容運行在微軟 的64位版本的這些解決方案的Office 2010,你必須將該項目升級到2010年的Visual Studio 或升級到面向2007年的Microsoft Office系統的2007年的的Visual Studio 2008項目。

更多詳細信息here

還檢查了在Wikipedia VSTO兼容性表,這可能是有用的信息

+0

嗨woodykiddyı厭倦了你的解決方案。我將我的項目升級到vs2010並再次安裝是的我的加載項在64位辦公室中工作。但是,如果我在Office 2003中使用相同的設置,則無法使用。我想爲Office 2007-2010和2003使用一個設置。這可能嗎? – mekar10

+0

@mehmetkarpuz看看這篇文章http://stackoverflow.com/a/3090173/786796 – woodykiddy

相關問題