I want to create a Visual Studio Item Template that generates an Item (for eg. custom .aspx page) in the solution by executing T4 Template while adding it to the solution.
I read the following post : T4 Templates and Visual Studio Item Templates
Is it possible to implement this without using GAX. I want to start by using a standard project item template and T4 Templates only, which doesn’t require GAX.
Please suggest,
Thanks,
Mayur
Yes, this is quite possible. You need two pieces to make it work.
Firstly you need to create a template that uses an IWizard implementation to enable you to run custom code. Here’s the documentation for that: http://msdn.microsoft.com/en-us/library/ms185301(v=vs.100).aspx
Secondly, in your custom IWizard, you need to use T4 via its STextTemplating service. Here’s the documentation for that. http://msdn.microsoft.com/en-us/library/gg586947.aspx
Hope this gets you started.