将.ctc迁移到.vsct菜单结构 [英] Migrate .ctc to .vsct menu structure
问题描述
从Visual Studio 2008 SDK开始,不推荐使用.ctc(命令表配置)文件,而是使用基于XML的命令表 - .vsct文件。由于我们当前的项目使用.ctc文件作为命令,因此我们需要转换为
.vsct格式,因为我们正在转向Visual Studio 2012构建环境。在这方面,尝试了这里招募的机制:https://msdn.microsoft.com/en-us/library/bb458155.aspx。有与msobtnid.h有关的构建错误,因为微软也弃用了
。请参阅https://msdn.microsoft.com/en-us/library/cc512930(v=vs.110).aspx. 一旦构建错误得到解决,VSIX软件包的部署没有显示我们的产品菜单Visual Studio 2012 IDE。完成
此活动的推荐方法是什么?
Vinita
Beginning with Visual Studio 2008 SDK, .ctc (command table configuration) files have been deprecated and XML based command table - .vsct files are being used instead. Since our current project uses .ctc file for commands, these need to be converted to .vsct format, since we are moving to Visual Studio 2012 build environment. In this regard, tried the mechanism as enlisted here: https://msdn.microsoft.com/en-us/library/bb458155.aspx. There were build errors pertaining to msobtnid.h, since Microsoft has deprecated this as well. Please see https://msdn.microsoft.com/en-us/library/cc512930(v=vs.110).aspx. Once the build errors were resolved, deployment of VSIX package did not bring up our product menu in Visual Studio 2012 IDE. What is the recommended way to complete this activity ?
Vinita
推荐答案
请在此处查看我的示例CommandTopMenu,CommandToolbar,CommandSubMenu等:
See my samples CommandTopMenu, CommandToolbar, CommandSubMenu, etc. here:
https:// github.com/visualstudioextensibility/VSX-Samples
这篇关于将.ctc迁移到.vsct菜单结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!