I'm playing with this new (for me) technology that is the T4 templating. What I need to achieve, to put it simple, is a way to produce the text of an email, letting the user customize the text inside the mail, but having some "placeholder" that will be substitute at runtime. This sounds to me a task in which T4 runtime templating should be a good choice. Indeed it works like a charme, except for the fact that I don't understand how to deploy the solution. I'd like to have my .tt files deployed on the production server as external files (that means not embedded in a dll file), in order to be able to simply open that file with notepad, change the text of the email, and let the system start working with the new template.
I tried both setting the build action property of the tt file to Content
and setting the Copy to output property to Copy always
: the first simply do nothing useful as far as I can see; the second copies both the .tt and the underlying .cs files on the bin folder.
Is there a clean way to achieve such a deploy? Does the edit of the .tt files launch a restart of the application, like when you change a web.config or similar?