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

编程入门 行业动态 更新时间:2024-10-22 14:25:03
如何创建Visual Studio 2008 C ++项目模板?(How to create a Visual Studio 2008 C++ project template?)

我已经多次为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.

更多推荐

本文发布于:2023-08-07 03:05:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1461240.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:模板   项目   Visual   Studio   project

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!