Templatizing a project in Visual Studio

拜拜、爱过 提交于 2019-11-28 09:03:30

问题


I have created a windows mobile application in Visual Studio. I want to templatize this project so that one can open this as a template as opposed to a project.

Is this possible in Visual Studio? I read that there is something called as "VSX (Visual Studio Extension)" which may achieve this. I have Visual Studio Ultimate installed in my system and was trying to install the VS2010 SDK. But its not getting installed telling that i dont have MS Visual Studio 2010 which I apparently do.

Am I going in the right direction? If not what would be the correct way to go ?


回答1:


Yes it is possible like this: File > Export Template than click next :) It will save your code too




回答2:


This is what I was looking for and it came really handy too.

Export Template Wizard

This exports a project directly as VSIX extension using a wizard.




回答3:


I would recommend using the TemplateBuilder NuGet package inside of either a VSIX Project or a Visual Studio package. I've created a 6 minute video showing you how you can: Create a VSIX containing a project template, and then editing the template. Checkit out at https://www.youtube.com/watch?v=z33jOo75CH4.

FYI TemplateBuilder is open source at https://github.com/ligershark/template-builder. If you've heard of SideWaffle it relies on TemplateBuilder.



来源:https://stackoverflow.com/questions/11081381/templatizing-a-project-in-visual-studio

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