What does hostspecific signify in a t4 template?

.net, code-generation, t4

Solution

A template with hostspecific set to "true" can access a member `this.Host` of type `ITextTemplatingEngineHost` (MSDN). You can then use e.g. its method "ResolvePath" in order to locate files needed for input in the template.

This is even more useful when you use a custom templating engine. See Oleg's blog here: http://www.olegsych.com/2008/02/t4-template-directive/

Problem

``` <#@ template debug="false" hostspecific="false" language="C#" #> ``` What does hostspecific attribute signify here.

Original source