MS OFFICE C#: Primary Interop Assemblies

给你一囗甜甜゛ 提交于 2019-12-22 09:59:14

问题


Any one know of a way to install MS Office Primary Interop Assemblies without installing having to install office itself?


回答1:


Nope, not possible, or useful. There is no sense installing libraries designed so you can interoperate with Office, if there is no Office to interoperate with. (Note, you need a full licence for whatever office product you are using trough Interop too).




回答2:


The use of this would be for setting up an automated build machine for continuous integration purposes.




回答3:


Primary Interopr is only interop libraries - this is something like bridges between your application and Office dll's,

That is why to create word file, or any other functionality of MS Office, you will need to have installed Office.

Just think - if no, there will be millions of open source office applications which will be build on top of Interops:)




回答4:


You need to install Office Tools for Visual Studio (VSTO).

The assemblies will be installed here:

C:\Program Files (x86)\Microsoft Visual Studio 12.0\Visual Studio Tools for Office\PIA


来源:https://stackoverflow.com/questions/7714548/ms-office-c-primary-interop-assemblies

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!