I am just getting started w/ CSLA.NET for Silverlight and also just getting started with Visual Studio 2010 and am having problems getting the Tests solution to build.
I downloaded the 3.8.3 version of CSLA.NET for Silverlight Framework and Tests. I unzipped them into a \CSLA383 directory. I double-clicked on the Unit Test solution and it started the conversion wizard. I told it to leave the .NET version at 3.5. After the conversion finished I tried doing a "ReBuild" but that failed ... there were something like 1000 errors.
I just started learning CSLA too. Is there any reason you didn't go with v4 beta 1?
Regardless, the first thing I would check is the References folder of each project in the solution. Make sure there are none flagged with errors. If tere are problems with Csla references, be careful when re-adding to pick the Silverlight flavor for Silverlight projects and the .NET flavor for all other project types (I suppose you will get an error anyway if you pick an incompatible version).
After that, start with error #1. You are probably just suffering from a domino effect of errors so you really don't have 1000 problems to fix :-).
Since I'm trying to work my way through Rocky's 2008 book which is based on the 3.6 version I didn't want to get confused by anything that might be different in version 4. I figured 3.8.3 is probably close enough to 3.6 that I wouldn't get too confused. I do eventually plan on moving to version 4 once I become familiar with 3.6/3.8. It obviously would have been easier if the version 4 update to the book was available but I'm trying to do the best I can with what is in print.
I think the problem I am having has to do w/ the UnitTestFramework. I see that my VS2010 Ultimate has UnitTestFramework but it is for .NET 4. My guess is that I have to somehow get the version of it for .NET 3.5 loaded into my PC. Since I am a newbie with all of this (.NET and VS) this should be "fun". :-)
The other option (which maybe someone can tell me if it works) is to start over w/ 3.8.3 and when it converts the solution file for the tests to let it update it to use .NET 4.
It would be nice if there was a "quick start" guide to getting all this up and running today that is pretty close to what is in the 2008 book. I know this is only temporary but I can't wait until everything (book and software) is "in sync".
CSLA .NET for Silverlight has its own unit test framework - UnitDriven. And CSLA 3.8 uses nunit 2.4, not the Microsoft test framework. So make sure you are using the right tools or you'll never get the tests to work.
After I load nunit 2.4, are there configuration settings that have to be tweaked to get nunit working with CSLA?
If you put the CSLA code and samples in the correct relative paths (as described in the instruction PDF at the bottom of the download page at www.lhotka.net/cslanet/download.aspx), then the unit tests should just work. If you use a different path you might need to update the database paths in the config file for the tests.
Of course you need to make sure nunit is set to test your version of .NET - but I think they default to 3.5 now which would be right.
Copyright (c) Marimer LLC