Templatizing a project in Visual Studio

2019-01-28 05: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 ?

3条回答
手持菜刀,她持情操
2楼-- · 2019-01-28 05:57

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.

查看更多
Summer. ? 凉城
3楼-- · 2019-01-28 05:58

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

Exporting template in vs 2010

查看更多
我命由我不由天
4楼-- · 2019-01-28 06:15

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.

查看更多
登录 后发表回答