I am creating a ProjectItem template that will allow developers on my team to create a new customized web page in their project. I am using the iWizard interface so that a custom UI appears when a developer chooses my Item in the VS2010 Add Item dialog. I have successfully built the custom UI and now I need to create the new project item. Part of the content of this new item must be written based on the developer's choices.
There may be a simpler solution, but i've been trying to use T4 Text templates to write the custom HTML code in my new project item based on the developer's selections in my UI. I created a T4 Text template, which resides in my project. My wizard interface, along with my custom UI, is in a separate class library project in the same solution.
Where i'm stuck is this. In the class library project (for my new item wizard), I need to be able to run the T4 Text template contained in the project my new item will be inserted into, and set the value for a property I created in the partial class for the T4 template. I'm not sure how to do this from my iWizard class library.
Can anyone point me in the right direction? Or, show me a different way I can write my custom text into the new project item being created.
Thanks!