我们正在团队中使用 Visual Studio 2012 和 TFS 开发 VSPackage。
The extension works fine on the computer used to create it (through a wizard). On another computer, Visual Studio says that "a project with output type of class library cannot be started directly" when we attempt to run it (with F5).
The output of the project is indeed class library, and pressing F5 on the first machine starts Experimental Instance of Visual Studio with the extension loaded and working.
通过查看%LOCALAPPDATA%\Microsoft\VisualStudio\11.0Exp\Extensions
在第二台计算机上,我们看到扩展已构建,并且尝试将其注册到 VS。
我们还在第二台计算机上创建了另一个扩展,并尝试在第一台计算机上运行它。它显示相同的错误。
我们如何才能让扩展程序在未用于创建它的计算机上运行?
Visual Studio 包项目类型向项目属性视图添加了一个附加选项卡,名为VISX
。在该选项卡上Deploy VSIX content to experimental instance for debugging
默认情况下选中该选项;这就是为什么在构建后将包文件复制到当前用户配置文件的扩展目录的原因。
如果要使用实验配置单元启动 Visual Studio,则必须自定义Debug
类库项目的设置。设置Start Action
to Start external program
并选择devenv.exe
文件(文件的位置取决于您的安装文件夹)并指定以下命令行参数:
/rootSuffix Exp
This allows to debug the extension by pressing F5.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)