<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: T4 Template Design: Standalone Template</title>
	<link>http://www.olegsych.com/2008/04/t4-template-design-standalone-template/</link>
	<description>Absolutes never work</description>
	<pubDate>Fri, 10 Sep 2010 14:24:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Oleg Sych</title>
		<link>http://www.olegsych.com/2008/04/t4-template-design-standalone-template/#comment-1256</link>
		<dc:creator>Oleg Sych</dc:creator>
		<pubDate>Mon, 27 Apr 2009 16:14:31 +0000</pubDate>
		<guid>http://www.olegsych.com/2008/04/t4-template-design-standalone-template/#comment-1256</guid>
		<description>Although you could implement a custom T4 host as described &lt;a href="http://msdn.microsoft.com/en-us/library/bb126579.aspx" rel="nofollow"&gt;here&lt;/a&gt;, this is a non-trivial task. A much simpler option is to invoke &lt;a href="http://msdn.microsoft.com/en-us/library/bb126245.aspx" rel="nofollow"&gt;TextTransform.exe&lt;/a&gt; and pass the parameters through either environment variables or a pre-defined external file.</description>
		<content:encoded><![CDATA[<p>Although you could implement a custom T4 host as described <a href="http://msdn.microsoft.com/en-us/library/bb126579.aspx" rel="nofollow">here</a>, this is a non-trivial task. A much simpler option is to invoke <a href="http://msdn.microsoft.com/en-us/library/bb126245.aspx" rel="nofollow">TextTransform.exe</a> and pass the parameters through either environment variables or a pre-defined external file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bianchi Andrea</title>
		<link>http://www.olegsych.com/2008/04/t4-template-design-standalone-template/#comment-1255</link>
		<dc:creator>Bianchi Andrea</dc:creator>
		<pubDate>Mon, 27 Apr 2009 14:56:02 +0000</pubDate>
		<guid>http://www.olegsych.com/2008/04/t4-template-design-standalone-template/#comment-1255</guid>
		<description>I have the same problem of Vipin.
I must use the template in a console application.
I folollow the point 2, but compiler don't like it. And compiler says: "The name 'Host' does not exist in the current context"

How can I do?</description>
		<content:encoded><![CDATA[<p>I have the same problem of Vipin.<br />
I must use the template in a console application.<br />
I folollow the point 2, but compiler don&#8217;t like it. And compiler says: &#8220;The name &#8216;Host&#8217; does not exist in the current context&#8221;</p>
<p>How can I do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vipin</title>
		<link>http://www.olegsych.com/2008/04/t4-template-design-standalone-template/#comment-1202</link>
		<dc:creator>Vipin</dc:creator>
		<pubDate>Wed, 18 Mar 2009 07:55:42 +0000</pubDate>
		<guid>http://www.olegsych.com/2008/04/t4-template-design-standalone-template/#comment-1202</guid>
		<description>But you cant use engine.ProcessTemplate without passing in a host in Code..</description>
		<content:encoded><![CDATA[<p>But you cant use engine.ProcessTemplate without passing in a host in Code..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oleg Sych</title>
		<link>http://www.olegsych.com/2008/04/t4-template-design-standalone-template/#comment-1201</link>
		<dc:creator>Oleg Sych</dc:creator>
		<pubDate>Tue, 17 Mar 2009 22:08:35 +0000</pubDate>
		<guid>http://www.olegsych.com/2008/04/t4-template-design-standalone-template/#comment-1201</guid>
		<description>T4 generates Host property the hostspecific parameter of the &lt;a href="http://www.olegsych.com/2008/02/t4-template-directive/" rel="nofollow"&gt;template&lt;/a&gt; directive is True. Hope this helps.</description>
		<content:encoded><![CDATA[<p>T4 generates Host property the hostspecific parameter of the <a href="http://www.olegsych.com/2008/02/t4-template-directive/" rel="nofollow">template</a> directive is True. Hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vipin</title>
		<link>http://www.olegsych.com/2008/04/t4-template-design-standalone-template/#comment-1200</link>
		<dc:creator>Vipin</dc:creator>
		<pubDate>Tue, 17 Mar 2009 06:45:24 +0000</pubDate>
		<guid>http://www.olegsych.com/2008/04/t4-template-design-standalone-template/#comment-1200</guid>
		<description>I am unable to find the Host property. though there is an interface ITextTemplatingHost. Please explain how to use the host property in code .</description>
		<content:encoded><![CDATA[<p>I am unable to find the Host property. though there is an interface ITextTemplatingHost. Please explain how to use the host property in code .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oleg Sych</title>
		<link>http://www.olegsych.com/2008/04/t4-template-design-standalone-template/#comment-1145</link>
		<dc:creator>Oleg Sych</dc:creator>
		<pubDate>Sat, 28 Feb 2009 22:30:34 +0000</pubDate>
		<guid>http://www.olegsych.com/2008/04/t4-template-design-standalone-template/#comment-1145</guid>
		<description>Chris,

The Host property is generated by T4 when hostspecific property of the template directive is set to true: 
&lt;#@ template hostspecific="True" #&gt;. You will get a host object of a different type, but the property should still be there.</description>
		<content:encoded><![CDATA[<p>Chris,</p>
<p>The Host property is generated by T4 when hostspecific property of the template directive is set to true:<br />
< #@ template hostspecific="True" #>. You will get a host object of a different type, but the property should still be there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.olegsych.com/2008/04/t4-template-design-standalone-template/#comment-1133</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 26 Feb 2009 05:40:02 +0000</pubDate>
		<guid>http://www.olegsych.com/2008/04/t4-template-design-standalone-template/#comment-1133</guid>
		<description>In trying to invoke the template from a console appliation, the Host property is no longer defined once the  is moved into the Program class.</description>
		<content:encoded><![CDATA[<p>In trying to invoke the template from a console appliation, the Host property is no longer defined once the  is moved into the Program class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oleg Sych</title>
		<link>http://www.olegsych.com/2008/04/t4-template-design-standalone-template/#comment-704</link>
		<dc:creator>Oleg Sych</dc:creator>
		<pubDate>Sun, 02 Nov 2008 13:47:02 +0000</pubDate>
		<guid>http://www.olegsych.com/2008/04/t4-template-design-standalone-template/#comment-704</guid>
		<description>You can use code shown in the "Calling Template" example in this article to do it.
&lt;ul&gt;
&lt;li&gt;Create a new console application
&lt;li&gt;Add assemblies listed in &lt;#@ import #&gt; directives as references to the project
&lt;li&gt;Copy the code from the &lt;# statement block #&gt; to the Main method
&lt;li&gt;Change the "Write" method call to "Console.Write"
&lt;li&gt;Copy the code from the &lt;#+ class feature block #&gt; to the Program class outside of the Main method
&lt;/ul&gt;
Let me know if this doesn't work.</description>
		<content:encoded><![CDATA[<p>You can use code shown in the &#8220;Calling Template&#8221; example in this article to do it.</p>
<ul>
<li>Create a new console application
</li>
<li>Add assemblies listed in < #@ import #> directives as references to the project
</li>
<li>Copy the code from the < # statement block #> to the Main method
</li>
<li>Change the &#8220;Write&#8221; method call to &#8220;Console.Write&#8221;
</li>
<li>Copy the code from the < #+ class feature block #> to the Program class outside of the Main method
</li>
</ul>
<p>Let me know if this doesn&#8217;t work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: micnik</title>
		<link>http://www.olegsych.com/2008/04/t4-template-design-standalone-template/#comment-673</link>
		<dc:creator>micnik</dc:creator>
		<pubDate>Wed, 29 Oct 2008 14:57:44 +0000</pubDate>
		<guid>http://www.olegsych.com/2008/04/t4-template-design-standalone-template/#comment-673</guid>
		<description>Thank you for your interesting articles!!!
Do you have an example of invoking a T4 template from external code, such as a console application?

Best regards / Michael</description>
		<content:encoded><![CDATA[<p>Thank you for your interesting articles!!!<br />
Do you have an example of invoking a T4 template from external code, such as a console application?</p>
<p>Best regards / Michael</p>
]]></content:encoded>
	</item>
</channel>
</rss>
