我已经多次为C#,ASP.NET,WinForms等项目使用“导出模板”功能。 今天我尝试为C ++项目做这件事,并注意到“导出模板”在文件菜单中显示为灰色。
是不是可以在VS 2008中创建C ++模板项目?
I've used the "Export Template" feature numerous times for C#, ASP.NET, WinForms, etc. projects. Today I tried to do it for a C++ project and noticed "Export Template" was grayed out in the File-menu.
Is it not possible to create C++ template projects in VS 2008 ?
最满意答案
是的:您在创建新项目时已经看到的是$ VsInstallDir)/ vcprojects。 要自己创建一个,你基本上创建一个.vsz和a.vsdir文件,在其中描述你的项目模板,你自己的向导的一堆脚本/ html文件,以及模板文件本身(.vcproj,附加内容等) 。 这不是一件容易的事,但一旦完成就有可能并且非常方便。 关于MSDN的完整解释,这里要详细说明。
项目项目/类别向导也是如此,它们都可以自定义。
yes it is: the ones you see already when creating a new project are in $VsInstallDir)/vcprojects. To create one yourself, you basically create a .vsz and a.vsdir file in which you describe your project template, a bunch of script/html files for your own wizard, and the template files itself (.vcproj, additional content etc.). It is not very easy, but it is possible and very handy once done. Complete explanation is on MSDN, it's too much to elaborate on here.
Same goes for project items/classwizards, they all can be customised.
更多推荐
发布评论