I have been working on a proof of concept application using the current CSLA 4.0 Preview 2 release and Silverlight 4 and have uncovered a few problems that appear as though they could be bugs in the CSLA framework. So far, they have been mostly related to the ViewModel support:
This makes me wonder if the CSLA 4.0 Preview 2 Release is ready for use with SL4? Can anyone comment? Should I really be using the latest 3.8.2 drop of CSLA \ CSLA Light for my proof of concept app?
First, it is a preview release - it isn't ready for use at all really
But I really do appreciate that you are trying to use it and that you are providing feedback - that is exactly the reason for doing the preview releases! I can't tell you how valuable feedback is at this stage!
Issue 1 was reported earlier and has been fixed in svn.
The MethodCaller code that creates the delegates to invoke methods without reflection was entirely reworked - which is a really big thing - so it isn't surprising that there's a bug or two. Additionally, in SL reflection was used up to now - so this is the point at which SL gets rid of that use of reflection in favor of a faster approach - but again, a big change.
I'm rather surprised that this is the only bug we've found thus far actually.
Issue 2 was also reported earlier and has been fixed in svn.
To help prevent this, I subsequently spent the time to put together a build server. That wasn't easy, as none of the open-source build server technologies support .NET 4 yet, so I had to cobble together something that could be executed by TeamCity via command line. That's working, but isn't ideal. However, it at least ensures that any code checked in is built against both .NET and SL.
Of course things are more complex now, because the VS10 RC is out, but SL4 doesn't work with it. So I have two machines running the RC, but must do most dev work on Beta 2
I just today created an RC branch so at least some of the basic RC work can be done (in the Csla.Xaml and Csla.Web/Csla.Web.Mvc projects anyway). But it is an ugly situation that makes SL4 work rather challenging.
I should also say...
If you are actually doing a meaningful POC then use 3.8.2.
You should only use 4 if you are interested in helping provide feedback.
The next preview (hopefully this week) of 4 will include some semi-working business/validation rule subsystem changes. I expect that will break nearly everything, so hold onto your shorts for that one!
Thanks for the detailed feedback! It's much appreciated. That's great you had already caught and fixed them... guess I need to get better at searching the buglog first before posting. You guys always move so quick it's hard to keep up sometimes! ;)
I wasn't sure how far along the preview version was but I thought I would give it a shot since we are just starting out on the POC. We are hitting the same issues with VS 2010 RC and SL4, which is making our lives tough too (we decided to stick with VS2010 Beta 2 and SL4 Beta 2). If time constraints allow, we'll stick with CLSA 4.0 and keep the feedback coming, but we may fall back to 3.8.2 if time is short.
Copyright (c) Marimer LLC