I want to have a T4 template in a Visual Studio item template, but I don't want the "tt" file to appear in the project after the item has been added. In short, I want to generate a .cs file and then discard the .tt file completely. The code generation is a one time only occurrence when the item is added to the project.
I managed to get the .tt file added to the item template but I cannot see how to discard it after code generation.
Thanks Laurent