开发者

Microsoft.Office.Tools.Excel missing

I'm currently rewriting an older AddIn for Excel 2007 that another developer write about 2 years ago. But when I want to debug it in VS 2008, the following error occurs;

Error   1   The type or namespace name 'Extensions' does not exist in the namespace 'Microsoft.Office.Tools.Excel' (are you missing an assembly reference?) 6   36  E:\..\doc.cs

I have Offie 2007 installed, as well as Power tools and virtually any package I could find when searching the internet for this assembly. But nothing contained it.

So now I d开发者_StackOverflowesperately ask for your help on where to get this assembly from...


It was only added to SP1 of VSTO 3.0 which you can get here: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=d8eb4921-891a-4b5e-973f-0b96e6ccf376.


Microsoft.Office.Tools.Excel.Extensions is from VSTO 2005 SE and doesn't work in VSTO 3.0 or higher. If it's not working in VS 2008, that means you have VSTO 3.0 installed and are targeting it.

  • Solution: Make sure you have Visual Studio 2008 SP1 installed (yes, VS2008 SP1, not only .NET 3.5 SP1 or VSTO 3.0 SP1). This will fix the issue. Download here: Microsoft Visual Studio 2008 Service Pack 1 (Installer)


You might need to look at Visual Studio Tools for Office

VSTO

That might have the assembly you need.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜