<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for .Net Head</title>
	<atom:link href="http://blog.baltrinic.com/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.baltrinic.com</link>
	<description>Agile and .Net development from the trenches</description>
	<lastBuildDate>Fri, 19 Nov 2010 13:06:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>Comment on Replacing ResXFileCodeGenerator with a T4 Template: Customize your resource access code. by Ken</title>
		<link>http://blog.baltrinic.com/software-development/dotnet/t4-template-replace-resxfilecodegenerator/comment-page-1#comment-1915</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Fri, 19 Nov 2010 13:06:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.baltrinic.com/?p=113#comment-1915</guid>
		<description>Randy,

Good catch and thanks for the fix.  I&#039;ll see if I can get it into the download soon.

--Ken</description>
		<content:encoded><![CDATA[<p>Randy,</p>
<p>Good catch and thanks for the fix.  I&#8217;ll see if I can get it into the download soon.</p>
<p>&#8211;Ken</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Replacing ResXFileCodeGenerator with a T4 Template: Customize your resource access code. by Randy Roesler</title>
		<link>http://blog.baltrinic.com/software-development/dotnet/t4-template-replace-resxfilecodegenerator/comment-page-1#comment-1895</link>
		<dc:creator>Randy Roesler</dc:creator>
		<pubDate>Wed, 17 Nov 2010 22:34:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.baltrinic.com/?p=113#comment-1895</guid>
		<description>The generator skips files which &quot;DependUpon&quot; other files.

Fix:

void FindResourceFilesRecursivlyAndRecordEntries(ProjectItems items, string path)
{
	foreach(ProjectItem item in items)
	{
		// WriteLine( item.Name + &quot; &quot; + item.ProjectItems.Count );
		
		if(Path.GetExtension(item.Name) == &quot;.resx&quot;)
			RecordEntriesInResourceFile(item, path);
		if(item.Kind == Kind_PhysicalFolder)
			FindResourceFilesRecursivlyAndRecordEntries(item.ProjectItems, path + &quot;.&quot; + item.Name);
		else if (item.ProjectItems.Count &gt; 0)
			FindResourceFilesRecursivlyAndRecordEntries(item.ProjectItems, path );
	}
}</description>
		<content:encoded><![CDATA[<p>The generator skips files which &#8220;DependUpon&#8221; other files.</p>
<p>Fix:</p>
<p>void FindResourceFilesRecursivlyAndRecordEntries(ProjectItems items, string path)<br />
{<br />
	foreach(ProjectItem item in items)<br />
	{<br />
		// WriteLine( item.Name + &#8221; &#8221; + item.ProjectItems.Count );</p>
<p>		if(Path.GetExtension(item.Name) == &#8220;.resx&#8221;)<br />
			RecordEntriesInResourceFile(item, path);<br />
		if(item.Kind == Kind_PhysicalFolder)<br />
			FindResourceFilesRecursivlyAndRecordEntries(item.ProjectItems, path + &#8220;.&#8221; + item.Name);<br />
		else if (item.ProjectItems.Count &gt; 0)<br />
			FindResourceFilesRecursivlyAndRecordEntries(item.ProjectItems, path );<br />
	}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Replacing ResXFileCodeGenerator with a T4 Template: Customize your resource access code. by Ken</title>
		<link>http://blog.baltrinic.com/software-development/dotnet/t4-template-replace-resxfilecodegenerator/comment-page-1#comment-1882</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Tue, 16 Nov 2010 12:21:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.baltrinic.com/?p=113#comment-1882</guid>
		<description>Glenn,

Glad you found it useful.  Thanks for pointing out the language attribute tweak for VS2008.  I had forgotten about it..  It was actually in the T4MVC template that I started out with, but I removed it because it throws a warning in VS2010.

Regards,
--Ken</description>
		<content:encoded><![CDATA[<p>Glenn,</p>
<p>Glad you found it useful.  Thanks for pointing out the language attribute tweak for VS2008.  I had forgotten about it..  It was actually in the T4MVC template that I started out with, but I removed it because it throws a warning in VS2010.</p>
<p>Regards,<br />
&#8211;Ken</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Replacing ResXFileCodeGenerator with a T4 Template: Customize your resource access code. by Glenn</title>
		<link>http://blog.baltrinic.com/software-development/dotnet/t4-template-replace-resxfilecodegenerator/comment-page-1#comment-1877</link>
		<dc:creator>Glenn</dc:creator>
		<pubDate>Mon, 15 Nov 2010 20:16:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.baltrinic.com/?p=113#comment-1877</guid>
		<description>Great stuff.  

I had to add the language attribute to the template for VS2008 usage:

language=&quot;C#v3.5&quot;</description>
		<content:encoded><![CDATA[<p>Great stuff.  </p>
<p>I had to add the language attribute to the template for VS2008 usage:</p>
<p>language=&#8221;C#v3.5&#8243;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Replacing ResXFileCodeGenerator with a T4 Template: Customize your resource access code. by Ken</title>
		<link>http://blog.baltrinic.com/software-development/dotnet/t4-template-replace-resxfilecodegenerator/comment-page-1#comment-1529</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Fri, 15 Oct 2010 20:18:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.baltrinic.com/?p=113#comment-1529</guid>
		<description>Linefeed,

Glad you found this helpful.  I&#039;ll take a closer look at this bug later.   Thanks for the workaround.

Regards,
Ken</description>
		<content:encoded><![CDATA[<p>Linefeed,</p>
<p>Glad you found this helpful.  I&#8217;ll take a closer look at this bug later.   Thanks for the workaround.</p>
<p>Regards,<br />
Ken</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Replacing ResXFileCodeGenerator with a T4 Template: Customize your resource access code. by Linefeed</title>
		<link>http://blog.baltrinic.com/software-development/dotnet/t4-template-replace-resxfilecodegenerator/comment-page-1#comment-1520</link>
		<dc:creator>Linefeed</dc:creator>
		<pubDate>Fri, 15 Oct 2010 07:25:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.baltrinic.com/?p=113#comment-1520</guid>
		<description>Love what you did here. 

I did find an issue.
Because you sort all resources entries:
AllEntries.Sort( new Comparison( (e1, e2) =&gt; (e1.Path + e1.File + e1.Name).CompareTo(e2.Path + e2.File + e2.Name)));

the genereted code is getting into troubles determining when a new class should starts when resources file names start with the same name.

For example:
ABC.Resx
ABCD.Resx

The moment you have entries in the ABC.Resx that start with the name ABCD, the T4 will generate 2 ABC classes.


Commenting out the AllEntries.Sort solved the problem for me.

Hope this helps,
Linefeed</description>
		<content:encoded><![CDATA[<p>Love what you did here. </p>
<p>I did find an issue.<br />
Because you sort all resources entries:<br />
AllEntries.Sort( new Comparison( (e1, e2) =&gt; (e1.Path + e1.File + e1.Name).CompareTo(e2.Path + e2.File + e2.Name)));</p>
<p>the genereted code is getting into troubles determining when a new class should starts when resources file names start with the same name.</p>
<p>For example:<br />
ABC.Resx<br />
ABCD.Resx</p>
<p>The moment you have entries in the ABC.Resx that start with the name ABCD, the T4 will generate 2 ABC classes.</p>
<p>Commenting out the AllEntries.Sort solved the problem for me.</p>
<p>Hope this helps,<br />
Linefeed</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Extension Methods for Converting Lambda Expression to Strings by Ken</title>
		<link>http://blog.baltrinic.com/software-development/dotnet/extension-methods-for-converting-lambda-expression-to-strings/comment-page-1#comment-1393</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Mon, 20 Sep 2010 09:59:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.baltrinic.com/?p=95#comment-1393</guid>
		<description>Colin, 

Good catch.  I have corrected the code.

Thanks,
Ken</description>
		<content:encoded><![CDATA[<p>Colin, </p>
<p>Good catch.  I have corrected the code.</p>
<p>Thanks,<br />
Ken</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Extension Methods for Converting Lambda Expression to Strings by Colin</title>
		<link>http://blog.baltrinic.com/software-development/dotnet/extension-methods-for-converting-lambda-expression-to-strings/comment-page-1#comment-1310</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Thu, 19 Aug 2010 07:53:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.baltrinic.com/?p=95#comment-1310</guid>
		<description>There is a typo in the second extension method you have tExpression and I think you meant
this Expression ...</description>
		<content:encoded><![CDATA[<p>There is a typo in the second extension method you have tExpression and I think you meant<br />
this Expression &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Better Array Model Binding in ASP.Net MVC by Ken</title>
		<link>http://blog.baltrinic.com/software-development/dotnet/better-array-model-binding-in-asp-net-mvc/comment-page-1#comment-1135</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Fri, 09 Jul 2010 17:03:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.baltrinic.com/?p=97#comment-1135</guid>
		<description>Thomas,

The project that I wrote this for has not gone to production yet but the approach has been working in development and testing for several months now with no issues.

Please let me know if you encounter any.

--Ken</description>
		<content:encoded><![CDATA[<p>Thomas,</p>
<p>The project that I wrote this for has not gone to production yet but the approach has been working in development and testing for several months now with no issues.</p>
<p>Please let me know if you encounter any.</p>
<p>&#8211;Ken</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Better Array Model Binding in ASP.Net MVC by Thomas Eyde</title>
		<link>http://blog.baltrinic.com/software-development/dotnet/better-array-model-binding-in-asp-net-mvc/comment-page-1#comment-1126</link>
		<dc:creator>Thomas Eyde</dc:creator>
		<pubDate>Wed, 07 Jul 2010 17:29:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.baltrinic.com/?p=97#comment-1126</guid>
		<description>Thank you. I ran into this &quot;limitation&quot; today, and my first reaction was WTF!

I copy-pasted your code and cross my fingers it doesn&#039;t introduce subtle errors. I am not comfortable with that &quot;force model to null&quot; statement.</description>
		<content:encoded><![CDATA[<p>Thank you. I ran into this &#8220;limitation&#8221; today, and my first reaction was WTF!</p>
<p>I copy-pasted your code and cross my fingers it doesn&#8217;t introduce subtle errors. I am not comfortable with that &#8220;force model to null&#8221; statement.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

