Create a Template Wizard using "Text template Transformation toolkit"

Jan 4, 2012 at 7:03 AM

Hello,

I have created a template which generates a C# code at run time. I wanted to use this template in Visual Studio either as a "Project Template" or an "Item Template". I know how to use this as a Project Template or Item Template.

The main question here is that, This template needs user input for code creation. So I wanted to display a Wizard when the user selects "My Template" while adding new project or new template.

How to get the solution for above problem? I wanted to use T4 Templates only.

Jan 17, 2012 at 11:55 AM

I got the answer for this.

Search for the IWizard and How to use it.

 

Also go through following links.

1. http://msdn.microsoft.com/en-us/library/ms185301.aspx

2. http://www.bluelemoncode.com/post/2012/01/05/Creating-custom-project-and-file-template-with-wizard-for-Visual-Studio.aspx

 

Anyone searching for this will come to know how to do this.

Thanks & Regards,

Mayur Mahajan