我拥有Visual Studio 2015社区,并为Visual Studio 2015安装了Office开发工具。
我选择了File- > New- > Project。
在“新建项目”对话框中,我选择了“模板” ->“办公室/共享点” ->“ VSTO加载项” ->“ Word 2010加载项”,因为我在笔记本电脑上安装了Microsoft Word 2010,并且我想创建一个加载项来定位它。
单击确定按钮在编辑器中打开ThisAddin.cs。
我什至可以带Visual Studio向我展示ThisAddin.Designer.xml和ThisAddin.Designer.cs文件。
However, I could not open the add-in in the designer mode. Not only was there no designer, there was no sight of the Designer menu item either in the View menu on the toolbar nor in the context-menu when I right-clicked ThisAddin.cs. Also, the Toolbox did not display any items for me to use.
The same thing happened after I installed Visual Studio 2017 Community and selected Office Tools to be installed during the installation process.
That makes me wonder if I am doing something wrong or if the Community editions do not support VSTO?
Yes community edition supports VSTO. If you want the designer you should add a ribbon to your project. Right click project in the solution explorer --> add a new item --> VSTO --> Ribbon.
默认情况下没有设计器,因为您不必强迫使用它。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句