【发布时间】:2016-04-11 15:43:56
【问题描述】:
【问题讨论】:
标签: c# .net interop ms-office windows-10
【问题讨论】:
标签: c# .net interop ms-office windows-10
我按照以下步骤让它们工作:
确保在“程序和功能”下的 Windows 功能中启用 .NET 3.5。
按照您提到的链接中的说明下载并安装 PIA。
添加对您项目的引用。它们应该安装在 C:\Windows\assembly\GAC_MSIL\
【讨论】:
我按照以下步骤操作:
在程序和功能下的 Windows 功能中启用 .NET 3.5。
Visual Studio 2015 下载的 Office 工具: https://www.microsoft.com/web/handlers/WebPI.ashx?command=GetInstallerRedirect&appid=OfficeToolsForVS2015
(主站为:https://www.visualstudio.com/pt-br/vs/office-tools/)
重建解决方案。
【讨论】: