是否可以在 Visual Studio 2010 包中使用 .ctc 文件? [英] Is it possible to use .ctc files in Visual Studio 2010 packages?

查看:24
本文介绍了是否可以在 Visual Studio 2010 包中使用 .ctc 文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 VSPackage,它最初是作为 Visual Studio 2005 项目使用的,已成功迁移到 Visual Studio 2008,现在正在迁移到 Visual Studio 2010.

I have a VSPackage that started life off as a Visual Studio 2005 project, was migrated successfully to Visual Studio 2008 and now it is being migrated to Visual Studio 2010.

问题是所有菜单都定义在一个 .ctc 文件中,据我所知,该文件现已被基于 XML 的 .vsct 文件所取代,并且它们不再工作.

The problem is that all of the menus are defined in a .ctc file which I understand has now been superseded by the XML-based .vsct file, and they no longer work.

有没有办法让 Visual Studio 2010 像以前一样识别 .ctc 文件,或者我是否必须将所有菜单转换为 .vsct格式?其他一切正常.

Is there a way to get Visual Studio 2010 to recognise the .ctc file as before or am I going to have to convert all of the menus into the .vsct format? Everything else works as normal.

推荐答案

CTC 格式在 VS2008 中已被弃用.是的,有一个转换器可以从 CTC 转换为 VSCT.此 MSDN 页面 涵盖.阅读该页面以获取说明,我将在此处概述该页面.您需要获取 Perl 运行时.然后您可以从命令行运行位于 VisualStudioIntegration\Tools\bin 子目录中的 ConvertCTCToVSCT.pl 脚本:

The CTC format was deprecated back at VS2008. Yes, there is a converter available from convert from CTC to VSCT. Covered by this MSDN page. Read the page for instructions, I'll just outline that page here. You need to obtain the Perl runtime. Then you can run the ConvertCTCToVSCT.pl script located in the VisualStudioIntegration\Tools\bin subdirectory from the command line:

 c:\pathto\perl.exe "c:\pathto\ConvertCTCtoVSCT.pl" PkgCmd.ctc PkgCmd.vsct

其中 pathto 是路径相应的文件.

这篇关于是否可以在 Visual Studio 2010 包中使用 .ctc 文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆