如何创建Visual Studio 2008 C ++项目模板? [英] How to create a Visual Studio 2008 C++ project template?

查看:169
本文介绍了如何创建Visual Studio 2008 C ++项目模板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对C#,ASP.NET,WinForms等项目使用了导出模板功能多次。今天我试图做一个C ++项目,并注意到导出模板在文件菜单中显示为灰色。



是否不可能在VS 2008中创建C ++模板项目?

解决方案<

是的,你在创建一个新项目时已经看到的是$ VsInstallDir)/ vcprojects。要创建一个你自己,你基本上创建一个.vsz和a.vsdir文件,其中描述您的项目模板,一堆脚本/ html文件为您自己的向导和模板文件本身(.vcproj,附加内容等) 。这不是很容易,但它是可能和非常方便一旦做。完整的解释在MSDN上,这里太详细了。



项目项目/类别也一样,都可以自定义。


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 ?

解决方案

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.

这篇关于如何创建Visual Studio 2008 C ++项目模板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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