VSTO不能建立OFFICE 文档项目的缘由

 正用的好好的,忽然vsto不能用了。我是安装的vs2015 社区版本,自己是不带vsto的,当初不知道怎吗安装上的,昨天忽然不能用了。症状是建立excel workbook 类型的项目是失败(建立add-in 项目仍是能够的)。先是提示:web

The project cannot be created because one or more primary interop assemblies required by this project are not installed. To create the project, install the Microsoft Office primary interop assemblies.sql

安装了 interop assemblies 后,有提示:网站

Project cannot be created because the "Excel Visual Studio Design-Time Adaptor Add-in" is not working correctly. Excel might have disabled the add-in or made it inactive, or all add-ins might be disabled in your Trust Center settings. Check the add-in status in Excel Options. If the add-in is active and enabled, reinstall or repair Visual Studio Tools for Office.ui

看了看是正常的没什么问题。this

那就从新安装vs2015 吧。安装完后更完蛋了,由于这个版本是不包含vsto的。设计

只好找vsto的安装包,找了好大一气,也没找到,ms的 office develop tools下载网站居然出错了,不能下载。excel

同事给了个链接https://www.visualstudio.com/vs/compare/,是比较不一样版本vs 不一样的,里边有个链接能够下载vsto安装包,狂喜,下来后发现是个web安装包,没办法聊胜于无。试试吧。server

安装时,又提示缺乏 sql server data tools。在打开 vs 2015 安装程序,选上安装之。居然要 400多M的空间,ms的东西就是豪华啊,占空间一点不客气。如今还没安装完呢。it

等着吧,看看安装完后可否正常。安装很是慢,估计都是web 安装,公司网慢啊。io

先保存下----------------------------

终于安装完了!!!

急不可耐打开vs,建立工程,终于.........................

你猜得没错,仍是不行,涛声依旧。我那个崩溃啊!不弄了,想静静。

很奇怪,明明office 设计师适配器外接程序是正常的,为什么vs检测不到它呢???难道不成是权限的问题?那用管理员权限运行vs看看。右键--管理员运行--建立项目--成功!

折腾了这几天,原来是权限在做怪,坑死我了。

相关文章
相关标签/搜索