<?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 on: AutoMapper for Silverlight 3.0 Alpha</title>
	<atom:link href="http://lostechies.com/jimmybogard/2010/02/19/automapper-for-silverlight-3-0-alpha/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/jimmybogard/2010/02/19/automapper-for-silverlight-3-0-alpha/</link>
	<description>Strong opinions, weakly held</description>
	<lastBuildDate>Fri, 17 May 2013 09:02:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: Philip Laureano</title>
		<link>http://lostechies.com/jimmybogard/2010/02/19/automapper-for-silverlight-3-0-alpha/#comment-2205</link>
		<dc:creator>Philip Laureano</dc:creator>
		<pubDate>Sat, 20 Mar 2010 21:59:32 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2010/02/18/automapper-for-silverlight-3-0-alpha.aspx#comment-2205</guid>
		<description>LinFu.DynamicProxy now has a SL3 port:

http://is.gd/aQGB2

You can change it back from Castle now :)</description>
		<content:encoded><![CDATA[<p>LinFu.DynamicProxy now has a SL3 port:</p>
<p><a href="http://is.gd/aQGB2" rel="nofollow">http://is.gd/aQGB2</a></p>
<p>You can change it back from Castle now <img src='http://lostechies.com/jimmybogard/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kelly Brownsberger</title>
		<link>http://lostechies.com/jimmybogard/2010/02/19/automapper-for-silverlight-3-0-alpha/#comment-2204</link>
		<dc:creator>Kelly Brownsberger</dc:creator>
		<pubDate>Tue, 02 Mar 2010 18:29:16 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2010/02/18/automapper-for-silverlight-3-0-alpha.aspx#comment-2204</guid>
		<description>Wow - I did the same (CopyLocal=true + Nant + the SL build of nunit) and it worked for me as well - TD.NET is happy, Nant is happy, and Kelly is happy :)

Now I&#039;m really confused by what statlight is intended to solve</description>
		<content:encoded><![CDATA[<p>Wow &#8211; I did the same (CopyLocal=true + Nant + the SL build of nunit) and it worked for me as well &#8211; TD.NET is happy, Nant is happy, and Kelly is happy <img src='http://lostechies.com/jimmybogard/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Now I&#8217;m really confused by what statlight is intended to solve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kelly Brownsberger</title>
		<link>http://lostechies.com/jimmybogard/2010/02/19/automapper-for-silverlight-3-0-alpha/#comment-2203</link>
		<dc:creator>Kelly Brownsberger</dc:creator>
		<pubDate>Tue, 02 Mar 2010 16:04:02 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2010/02/18/automapper-for-silverlight-3-0-alpha.aspx#comment-2203</guid>
		<description>Thanks Jimmy

What&#039;s not clear to me is if all the various test runners are capable of loading and running Silverlight assemblies (obviously there needs to be a SL compatible framework/metadata assembly for you testing framework of choice), then why does statlight need to exist?  My understanding was it was created as a way to running tests and ultimately invoked the browser under the covers.

All this is really confusing... just needed to rant :)

You getting it to work is inspiring though - I&#039;m going to keep plugging.  Thanks again -kelly</description>
		<content:encoded><![CDATA[<p>Thanks Jimmy</p>
<p>What&#8217;s not clear to me is if all the various test runners are capable of loading and running Silverlight assemblies (obviously there needs to be a SL compatible framework/metadata assembly for you testing framework of choice), then why does statlight need to exist?  My understanding was it was created as a way to running tests and ultimately invoked the browser under the covers.</p>
<p>All this is really confusing&#8230; just needed to rant <img src='http://lostechies.com/jimmybogard/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>You getting it to work is inspiring though &#8211; I&#8217;m going to keep plugging.  Thanks again -kelly</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bogardj</title>
		<link>http://lostechies.com/jimmybogard/2010/02/19/automapper-for-silverlight-3-0-alpha/#comment-2202</link>
		<dc:creator>bogardj</dc:creator>
		<pubDate>Tue, 02 Mar 2010 13:39:31 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2010/02/18/automapper-for-silverlight-3-0-alpha.aspx#comment-2202</guid>
		<description>@Kelly

I&#039;m using the regular NAnt NUnit task to build.  I had to bundle the SL 3.0 assemblies as part of my source tree, and select &quot;CopyLocal&quot; to true for my SL projects for the system dll&#039;s.  This made sure that the correct system.dll was used, instead of some GAC version.

I have no idea how it&#039;s working, other than I was getting real test failures in all of my test runners tested (R#, TD.NET, NAnt).

I did talk to the statlight guys, and we&#039;re talking with the teamcity.codebetter folks to see if we can&#039;t get that working on my build server.</description>
		<content:encoded><![CDATA[<p>@Kelly</p>
<p>I&#8217;m using the regular NAnt NUnit task to build.  I had to bundle the SL 3.0 assemblies as part of my source tree, and select &#8220;CopyLocal&#8221; to true for my SL projects for the system dll&#8217;s.  This made sure that the correct system.dll was used, instead of some GAC version.</p>
<p>I have no idea how it&#8217;s working, other than I was getting real test failures in all of my test runners tested (R#, TD.NET, NAnt).</p>
<p>I did talk to the statlight guys, and we&#8217;re talking with the teamcity.codebetter folks to see if we can&#8217;t get that working on my build server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kelly Brownsberger</title>
		<link>http://lostechies.com/jimmybogard/2010/02/19/automapper-for-silverlight-3-0-alpha/#comment-2201</link>
		<dc:creator>Kelly Brownsberger</dc:creator>
		<pubDate>Tue, 02 Mar 2010 12:16:54 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2010/02/18/automapper-for-silverlight-3-0-alpha.aspx#comment-2201</guid>
		<description>I&#039;m trying to get our Silverlight code and accompanying unit test code running w/ our CCNET builds and I&#039;m running into some pain.  Forgive my ignorance, but how are you running w/ via NAnt?  I followed the links to the NUnitSilverlight build, but it&#039;s just a custom build of nunit.framework.dll and nunit.silverlight.dll.  It&#039;s not clear to me what is loading these and how it&#039;s running the tests.  This [1] was linked off of the NunitSilverlight blog announcement, which makes me believe this can be done w/ a full .NET process, but according to Jamie&#039;s comments he &quot;some ilasm / ildasm tricks and I never got around to automating it&quot;.  When I try to load up a Silverlight Class Library dll with references to these nunit dll&#039;s and try to run it from the full nunit.exe for 2.5.1, I get poopoo&#039;ed (as expected) with failure to load assembly exceptions.

What am I missing here?  The fact statlight [2] exists leads me to believe I can run my test with the traditional runners, or did they author not now about some trick?

Wow - a little surprising this is so difficult :(  Any advice would be appreciated

[1] http://weblogs.asp.net/nunitaddin/archive/2008/05/01/silverlight-nunit-projects.aspx
[2] http://statlight.codeplex.com/</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to get our Silverlight code and accompanying unit test code running w/ our CCNET builds and I&#8217;m running into some pain.  Forgive my ignorance, but how are you running w/ via NAnt?  I followed the links to the NUnitSilverlight build, but it&#8217;s just a custom build of nunit.framework.dll and nunit.silverlight.dll.  It&#8217;s not clear to me what is loading these and how it&#8217;s running the tests.  This [1] was linked off of the NunitSilverlight blog announcement, which makes me believe this can be done w/ a full .NET process, but according to Jamie&#8217;s comments he &#8220;some ilasm / ildasm tricks and I never got around to automating it&#8221;.  When I try to load up a Silverlight Class Library dll with references to these nunit dll&#8217;s and try to run it from the full nunit.exe for 2.5.1, I get poopoo&#8217;ed (as expected) with failure to load assembly exceptions.</p>
<p>What am I missing here?  The fact statlight [2] exists leads me to believe I can run my test with the traditional runners, or did they author not now about some trick?</p>
<p>Wow &#8211; a little surprising this is so difficult <img src='http://lostechies.com/jimmybogard/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />   Any advice would be appreciated</p>
<p>[1] <a href="http://weblogs.asp.net/nunitaddin/archive/2008/05/01/silverlight-nunit-projects.aspx" rel="nofollow">http://weblogs.asp.net/nunitaddin/archive/2008/05/01/silverlight-nunit-projects.aspx</a><br />
[2] <a href="http://statlight.codeplex.com/" rel="nofollow">http://statlight.codeplex.com/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Tavares</title>
		<link>http://lostechies.com/jimmybogard/2010/02/19/automapper-for-silverlight-3-0-alpha/#comment-2200</link>
		<dc:creator>Chris Tavares</dc:creator>
		<pubDate>Sat, 20 Feb 2010 18:37:04 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2010/02/18/automapper-for-silverlight-3-0-alpha.aspx#comment-2200</guid>
		<description>We had similar concerns when building the Silverlight version of Unity. We chose to avoid partial compilation; I started having flashbacks to my Unix days and gigantic tangles of #ifdefs. What we did instead was to segregate the code by file. Every file in the codebase is either just filename.cs (goes in both), filename.Desktop.cs (desktop CLR only) or filename.Silverlight.cs (silverlight version only). The silverlight .csproj file does the same thing you do - it&#039;s all linked files, but it omits linking the .Desktop files and includes the .Silverlight ones. And the reverse for the desktop version.

Then, we made the classes that had to vary across platform partial classes. So for some types, you&#039;ll have &lt;class&gt;.cs and &lt;class&gt;.Desktop.cs and &lt;class&gt;Silverlight.cs. The main file would have the invariant stuff with the partial keyword on it, and the other two would have the variations. Between this and using partial methods to get a hook into the other methods when needed, it worked out quite well.

Probably overkill if you&#039;ve got only a small amount of variation, but it worked well for us and is probably easier to manage if things get bigger.</description>
		<content:encoded><![CDATA[<p>We had similar concerns when building the Silverlight version of Unity. We chose to avoid partial compilation; I started having flashbacks to my Unix days and gigantic tangles of #ifdefs. What we did instead was to segregate the code by file. Every file in the codebase is either just filename.cs (goes in both), filename.Desktop.cs (desktop CLR only) or filename.Silverlight.cs (silverlight version only). The silverlight .csproj file does the same thing you do &#8211; it&#8217;s all linked files, but it omits linking the .Desktop files and includes the .Silverlight ones. And the reverse for the desktop version.</p>
<p>Then, we made the classes that had to vary across platform partial classes. So for some types, you&#8217;ll have <class>.cs and </class><class>.Desktop.cs and </class><class>Silverlight.cs. The main file would have the invariant stuff with the partial keyword on it, and the other two would have the variations. Between this and using partial methods to get a hook into the other methods when needed, it worked out quite well.</p>
<p>Probably overkill if you&#8217;ve got only a small amount of variation, but it worked well for us and is probably easier to manage if things get bigger.</class></p>
]]></content:encoded>
	</item>
</channel>
</rss>
