.net 程序集 Microsoft.Office.Interop.Word,版本=15.0.0.0 使用 Microsoft.Vbe.Interop,版本=15.0.0.0
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/23085723/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Assembly Microsoft.Office.Interop.Word, Version=15.0.0.0 uses Microsoft.Vbe.Interop, Version=15.0.0.0
提问by Developer
I just downloaded MS Visual Studio 2010 solution and get that error.
我刚刚下载了 MS Visual Studio 2010 解决方案并得到了那个错误。
Error 1 Assembly 'Microsoft.Office.Interop.Word, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' uses 'Microsoft.Vbe.Interop, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' which has a higher version than referenced assembly 'Microsoft.Vbe.Interop, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' c:\PROJECTS\UHelper\Assemblies\Microsoft.Office.Interop.Word.dll AcceptService.Web
错误 1 程序集“Microsoft.Office.Interop.Word,版本=15.0.0.0,文化=中性,PublicKeyToken=71e9bce111e9429c”使用“Microsoft.Vbe.Interop,版本=15.0.0.0,文化=中性,PublicKeyToken=71e9bce111e942”比引用的程序集 'Microsoft.Vbe.Interop, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' c:\PROJECTS\UHelper\Assemblies\Microsoft.Office.Interop.Word.dll AcceptService.Web 更高的版本
I have MS Office 2010 installed. I have reference to local copy of Microsoft.Office.Interop.Word.dll within project.
我安装了 MS Office 2010。我在项目中引用了 Microsoft.Office.Interop.Word.dll 的本地副本。
Any clue how to fix it?
任何线索如何解决它?
采纳答案by Developer
First I got this pagethat I assumed should be useful. But it was not. :( Anyway I put that link so it CANbe useful for someone else.
首先,我得到这个页面,我认为应该是有用的。但事实并非如此。:(无论如何,我把那个链接,以便它CAN对别人有用。
Second point was to use advice that I found here
第二点是使用我在这里找到的建议
So I navigated to http://www.microsoft.com/en-us/download/details.aspx?id=18249And installed Microsoft Office 2010 Primary Interop Assemblies Bootstrapper Package.
所以我导航到http://www.microsoft.com/en-us/download/details.aspx?id=18249并安装了Microsoft Office 2010 Primary Interop Assemblies Bootstrapper Package。
And finally I deleted Microsoft.Office.Interop.Word.dllreference in the project and added another one
最后我删除 Microsoft.Office.Interop.Word.dll了项目中的引用并添加了另一个
Visual Studio installs these copies of PIAs to the following locations:
On the development computer:%ProgramFiles%\Microsoft Visual Studio 12.0\Visual Studio Tools for Office\PIA\Office14(or%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\Visual Studio Tools for Office\PIA\Office14on 64-bit operating systems)%ProgramFiles%\Microsoft Visual Studio 12.0\Visual Studio Tools for Office\PIA\Office15(or%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\Visual Studio Tools for Office\PIA\Office15on 64-bit operating systems)
Visual Studio 将这些 PIA 副本安装到以下位置:
在开发计算机上:(%ProgramFiles%\Microsoft Visual Studio 12.0\Visual Studio Tools for Office\PIA\Office14或%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\Visual Studio Tools for Office\PIA\Office14在 64 位操作系统上)%ProgramFiles%\Microsoft Visual Studio 12.0\Visual Studio Tools for Office\PIA\Office15(或%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\Visual Studio Tools for Office\PIA\Office15在 64 位操作系统上)
And yeah!!! Error gone! :)
是的!!!错误消失!:)

