<?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: Understanding T4: &#60;#@ assembly #&#62; directive</title>
	<link>http://www.olegsych.com/2008/02/t4-assembly-directive/</link>
	<description>Me.Write(code)</description>
	<pubDate>Fri, 12 Mar 2010 00:42:16 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Oleg Sych</title>
		<link>http://www.olegsych.com/2008/02/t4-assembly-directive/#comment-2650</link>
		<dc:creator>Oleg Sych</dc:creator>
		<pubDate>Sun, 27 Dec 2009 21:32:38 +0000</pubDate>
		<guid>http://www.olegsych.com/2008/02/t4-assembly-directive/#comment-2650</guid>
		<description>The locking behavior is a side-effect of T4 engine reusing the templating AppDomain to improve performance. You can use VolatileAssembly custom directive from T4 Toolbox to get around this problem. I have updated the article to include links to details.</description>
		<content:encoded><![CDATA[<p>The locking behavior is a side-effect of T4 engine reusing the templating AppDomain to improve performance. You can use VolatileAssembly custom directive from T4 Toolbox to get around this problem. I have updated the article to include links to details.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marius</title>
		<link>http://www.olegsych.com/2008/02/t4-assembly-directive/#comment-2533</link>
		<dc:creator>marius</dc:creator>
		<pubDate>Mon, 14 Dec 2009 23:09:05 +0000</pubDate>
		<guid>http://www.olegsych.com/2008/02/t4-assembly-directive/#comment-2533</guid>
		<description>ok the answer was allready here... downloading fxCop...</description>
		<content:encoded><![CDATA[<p>ok the answer was allready here&#8230; downloading fxCop&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marius</title>
		<link>http://www.olegsych.com/2008/02/t4-assembly-directive/#comment-2532</link>
		<dc:creator>marius</dc:creator>
		<pubDate>Mon, 14 Dec 2009 22:01:41 +0000</pubDate>
		<guid>http://www.olegsych.com/2008/02/t4-assembly-directive/#comment-2532</guid>
		<description>Same complains as Kevin
Once VS/T4 loads the referenced assembly, it never unloads it. If I want to recompile the referenced assembly, I get an error. I end up restarting VS a lot. Annoying...

This didn't happend versions before...
I use this particular Template to Transform some xml in json using xsl. No big deal. The template is located in a ASP WebApp and the static type/method that transforms the xml are located in a separate dll. The same dll is referenced by the web Application. As i said this wasn't the case with older versions of the t4toolkit</description>
		<content:encoded><![CDATA[<p>Same complains as Kevin<br />
Once VS/T4 loads the referenced assembly, it never unloads it. If I want to recompile the referenced assembly, I get an error. I end up restarting VS a lot. Annoying&#8230;</p>
<p>This didn&#8217;t happend versions before&#8230;<br />
I use this particular Template to Transform some xml in json using xsl. No big deal. The template is located in a ASP WebApp and the static type/method that transforms the xml are located in a separate dll. The same dll is referenced by the web Application. As i said this wasn&#8217;t the case with older versions of the t4toolkit</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ASommer</title>
		<link>http://www.olegsych.com/2008/02/t4-assembly-directive/#comment-2191</link>
		<dc:creator>ASommer</dc:creator>
		<pubDate>Sun, 30 Aug 2009 20:42:52 +0000</pubDate>
		<guid>http://www.olegsych.com/2008/02/t4-assembly-directive/#comment-2191</guid>
		<description>VERSIONS IN ASSEMBLY DIRECTIVE
(I hope the following might be useful for somebody)

You can declare the assembly version to use in T4 by declaring it inside the name's string, like the following example:

assembly name="Microsoft.SqlServer.Smo, Version=10.0.0.0" 

I had to figure out this when I got the following error today: 

error BC32206: Compiling transformation: The project currently contains references to more than one version of Microsoft.SqlServer.Smo, a direct reference to version 9.0.242.0 and an indirect reference (through 'CustomProyectDLL') to version 10.0.0.0. Change the direct reference to use version 10.0.0.0 (or higher) of Microsoft.SqlServer.Smo.</description>
		<content:encoded><![CDATA[<p>VERSIONS IN ASSEMBLY DIRECTIVE<br />
(I hope the following might be useful for somebody)</p>
<p>You can declare the assembly version to use in T4 by declaring it inside the name&#8217;s string, like the following example:</p>
<p>assembly name=&#8221;Microsoft.SqlServer.Smo, Version=10.0.0.0&#8243; </p>
<p>I had to figure out this when I got the following error today: </p>
<p>error BC32206: Compiling transformation: The project currently contains references to more than one version of Microsoft.SqlServer.Smo, a direct reference to version 9.0.242.0 and an indirect reference (through &#8216;CustomProyectDLL&#8217;) to version 10.0.0.0. Change the direct reference to use version 10.0.0.0 (or higher) of Microsoft.SqlServer.Smo.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Dietz</title>
		<link>http://www.olegsych.com/2008/02/t4-assembly-directive/#comment-1102</link>
		<dc:creator>Kevin Dietz</dc:creator>
		<pubDate>Mon, 16 Feb 2009 00:53:05 +0000</pubDate>
		<guid>http://www.olegsych.com/2008/02/t4-assembly-directive/#comment-1102</guid>
		<description>Once VS/T4 loads the referenced assembly, it never unloads it.  If I want to recompile the referenced assembly, I get an error.  I end up restarting VS a lot.  Annoying.</description>
		<content:encoded><![CDATA[<p>Once VS/T4 loads the referenced assembly, it never unloads it.  If I want to recompile the referenced assembly, I get an error.  I end up restarting VS a lot.  Annoying.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oleg Sych</title>
		<link>http://www.olegsych.com/2008/02/t4-assembly-directive/#comment-739</link>
		<dc:creator>Oleg Sych</dc:creator>
		<pubDate>Sun, 09 Nov 2008 15:05:41 +0000</pubDate>
		<guid>http://www.olegsych.com/2008/02/t4-assembly-directive/#comment-739</guid>
		<description>Unfortunately, I cannot explain what is going on based on this informaiton. Could you provide more details, such as example of your template code, which host you are using to transform it (visual studio, command line), etc?</description>
		<content:encoded><![CDATA[<p>Unfortunately, I cannot explain what is going on based on this informaiton. Could you provide more details, such as example of your template code, which host you are using to transform it (visual studio, command line), etc?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Asker</title>
		<link>http://www.olegsych.com/2008/02/t4-assembly-directive/#comment-716</link>
		<dc:creator>Simon Asker</dc:creator>
		<pubDate>Tue, 04 Nov 2008 14:15:31 +0000</pubDate>
		<guid>http://www.olegsych.com/2008/02/t4-assembly-directive/#comment-716</guid>
		<description>My T4 template doesnt compile unless I add an assembly reference to "System.dll".
I'm confused at this because in your example there's no such reference. Also, your assembly references don't include the .dll suffix, but if I remove the .dll suffix from System.dll, I get a different error: "Template1.cs(1,1): error CS0116: A namespace does not directly contain members such as fields or methods".
Can you explain what's going on in this situation?</description>
		<content:encoded><![CDATA[<p>My T4 template doesnt compile unless I add an assembly reference to &#8220;System.dll&#8221;.<br />
I&#8217;m confused at this because in your example there&#8217;s no such reference. Also, your assembly references don&#8217;t include the .dll suffix, but if I remove the .dll suffix from System.dll, I get a different error: &#8220;Template1.cs(1,1): error CS0116: A namespace does not directly contain members such as fields or methods&#8221;.<br />
Can you explain what&#8217;s going on in this situation?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oleg Sych</title>
		<link>http://www.olegsych.com/2008/02/t4-assembly-directive/#comment-102</link>
		<dc:creator>Oleg Sych</dc:creator>
		<pubDate>Fri, 04 Apr 2008 00:17:05 +0000</pubDate>
		<guid>http://www.olegsych.com/2008/02/t4-assembly-directive/#comment-102</guid>
		<description>Added description of how T4 resolves assembly name.</description>
		<content:encoded><![CDATA[<p>Added description of how T4 resolves assembly name.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
