It would make sense that, as you said the SL is a subset, it only works one way.
But it does solve my main issue, unit testing SL assemblies with NUnit. last time I checked MSTest still does not allow you to have an abstract testfixture, which I use heavily to test all my NHibernate mappings So, great news! :) (both ways would have been better, but I assume the subset thing is a bit of a pain for the SL guys (oh.. and girls) in Redmond). Stephan From: [email protected] [mailto:[email protected]] On Behalf Of Jack Ukleja Sent: Friday, 4 December 2009 2:05 PM To: ozSilverlight Subject: Re: Silverlight 4.0 question I just did a quick test... If you try to add a reference to a .NET 4 project from a SL4 project it says: "You can only add project references to other Silverlight projects in the solution". If I try to add a reference to a SL4 project from a .NET 4 project it works OK. I can also instantiate a class from the SL4 library - compiles fine. So it looks like "same compiled code" means all your shared code has to be in SL libraries, if you want to share it. Disappointing that you can't use "full" CLR libraries from "silverlight" CLR, but I am sure there is a good technical reason (SL CLR subset of full CLR?). It's certainly a bit of a confusing claim - I have not seen a clear explanation of it anywhere. On Fri, Dec 4, 2009 at 1:51 PM, Stephen Price <[email protected]<mailto:[email protected]>> wrote: "The .NET Common Runtime (CLR) now enables the same compiled code to be run on the desktop and Silverlight without change." Just curious if anyone has tested this out to see what it actually means? The way I read it, I should be able to compile my dll, then reference it in a normal .Net project and make calls to it (such as unit tests). Or is it saying that .Net code/assemblies can be run in Silverlight without change? (ie Silverlight now has a full CLR implementation?) ...or something else? cheers, Stephen _______________________________________________ ozsilverlight mailing list [email protected]<mailto:[email protected]> http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight ________________________________ National Australia Bank Ltd - ABN 12 004 044 937 This email may contain confidential information. If you are not the intended recipient, please immediately notify us at [email protected] or by replying to the sender, and then destroy all copies of this email. Except where this email indicates otherwise, views expressed in this email are those of the sender and not of National Australia Bank Ltd. Advice in this email does not take account of your objectives, financial situation, or needs. It is important for you to consider these matters and, if the e-mail refers to a product(s), you should read the relevant Product Disclosure Statement(s)/other disclosure document(s) before making any decisions. If you do not want email marketing from us in future, forward this email with "unsubscribe" in the subject line to [email protected] in order to stop marketing emails from this sender. National Australia Bank Ltd does not represent that this email is free of errors, viruses or interference.
_______________________________________________ ozsilverlight mailing list [email protected] http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
