How to create a Visual Studio 2008 C++ project template?

这一生的挚爱 提交于 2019-12-10 19:53:40

问题


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 ?


回答1:


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.




回答2:


Complete information about the process can be found in this link http://msdn.microsoft.com/en-IN/library/96xz4cw2(v=vs.90).aspx



来源:https://stackoverflow.com/questions/1715195/how-to-create-a-visual-studio-2008-c-project-template

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!