This question is locked. New answers and comments are not allowed.
I've created a custom T4 template (copied and modified the FluentModel.tt) and I'm having mixed results while debugging the template. I've added the following line to the template file just before this.RunCodeGeneration():
System.Diagnostics.Debugger.Launch();
Sometimes this works, other times the template executes and exits without any errors or the VS prompt to debug.
I'm using VS 2012 with the latest install of OpenAccess Free Edition, VS project a Console App writing out the typical Hello World message.