标签: primary-interop-assembly

VS 2010的Outlook 2013加载项

很抱歉问这么愚蠢的问题,但我用Google搜索了大约两个小时,但找不到我的问题的答案:

如何开发Outlook 2013加载项?

我有一个在C#2010和Outlook 2010中创建的加载项.现在我想以这种方式扩展它,在Outlook 2013中是两个浏览器事件InlineResponse和InlineResponseClose.

我搜索了VSTO和PIA的永不版本,但每个网站都告诉我这些仅适用于VS 2012?

有人可以解释一下我需要扩展这个加载项或向我展示一个描述这个的链接吗?对不起,如果这是一个愚蠢的问题,但在那之后我有点紧张.

c# vsto primary-interop-assembly outlook-addin office-pia

5
推荐指数
1
解决办法
8261
查看次数

Microsoft.Office.Interop.Word命名空间覆盖我的系统命名空间?C#ASP.net

我正在尝试使用Microsoft Office Interops版本11,.NET 2.0修复使用Visual Studio 2003创建的此遗留应用程序.我正在尝试在Visual Studio Express 2010中修复它以引用Interops版本14,.NET 4.0 - 正如我之前关于StackOverflow的问题中所述,遗留应用程序在Windows 7中工作正常,但在我关闭它之后,Microsoft Office产品是当我尝试使用它们时崩溃.

但是,当我修复VS2010中的引用(删除旧的v.11 Interops,添加新的v.14 Interops)然后尝试发布应用程序时,我得到的错误就像

'Microsoft.Office.Interop.Word.System does not contain a definition for IO'
Run Code Online (Sandbox Code Playgroud)

看起来VS2010在引用Word命名空间时没有看到我的System命名空间被使用?当我删除了

using Microsoft.Office.Interop.Word
Run Code Online (Sandbox Code Playgroud)

命名空间然后尝试发布,上面的错误消失了,我只得到与缺少的Word引用相关的预期错误

The type or namespace name '_Document' could not be found (are you missing a using directive or an assembly reference?)
Run Code Online (Sandbox Code Playgroud)

我已经在参考中包含了System.dll,所以我不确定发生了什么?谢谢阅读!

编辑:我使Office Interops的"嵌入式互操作类型"为假.那可能修复了一些错误?但是:Visual Studio仍然将任何系统引用解释为"Microsoft.Office.Interop.Word.System",这不是我想要的.这个错误似乎是现在的主导:

The type name 'Windows' does not exist in the type 'Microsoft.Office.Interop.Word.System'
Run Code Online (Sandbox Code Playgroud)

.net c# primary-interop-assembly ms-office .net-assembly

2
推荐指数
1
解决办法
4654
查看次数