When you have a .tt
file included in your solution as a "Solution Item", it doesn't have a project, so we trick it into running by opening it and saving it. This bug fix, provided by @huysentruitw, closes closes these templates if they weren't open before the build.