Trying to get back into CSLA and downloaded the latest everything. .NET Framework 3.5, VS2008Pro, CSLA 3.6.1.0. Using Vista64. Bought the Alpha VB Book online and read almost all of that. I am a VB guy, with no C# experience.
Using the instructions in cslabuild.pdf (which weren't an *exact* match, btw) I tried to build CSLA to get started. I got the errors below (as well as others). I am sure this is an installation/cockpit error, but I can't get to the bottom of it.
I did try to add a reference to the project (on a lark) and selected the System.Data .NET reference. I noticed the version on that was 2.0 and I assumed it would be 3.5 or something. Still no go.
I did notice that I have a C:\Users\Bill\Documents\Visual Studio 2008 directory even though the files are to be extracted from cslacs into C:\Visual Studio Projects\CSLA\Source. I tried both and neither one worked.
Anyone have any ideas? Thanks in advance...
==================================
Error 16 The type or namespace name 'Objects' does not exist in the namespace 'System.Data' (are you missing an assembly reference?) C:\Visual Studio Projects\CSLA\Source\Csla\Data\ObjectContextManager.cs 6 19 Csla
Error 17 The type or namespace name 'Services' does not exist in the namespace 'System.Data' (are you missing an assembly reference?) C:\Visual Studio Projects\CSLA\Source\Csla\Data\DataServiceContextManager.cs 24 67 Csla
Not sure what you are doing wrong.
Here is what I do:
1. Download the latest Csla.zip file and put it in a folder like C:\CSLA Versions\3.6\
2. Unzip the file - but when asked for a folder I always press the . (period) to indicate current folder.
Also be sure to extract and Use Folder Names.
3. Then simply double click the .sln file and hit compile. It should work.
4. I also have my own .snk file so I change that in Proeject Properties Signing and recompile.
5. Once it is done compiling - copy the Csla.dll and .pdb files to your project and reference them from your new project.
Joe
Thanks, Joe but that didn't work, either. Same errors.
Would it be something I didn't install when I installed VS2008? Do I have to do something special for C#? Here's the full list of errors:
Warning 1 Could not resolve this reference. Could not locate the assembly "System.Data.Services.Client". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. Csla
Warning 2 Could not resolve this reference. Could not locate the assembly "System.Data.Entity". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. Csla
Warning 3 #warning: 'Improve if items is a counting bag' C:\CSLA Versions\3.6\cslacs\Csla\C5\Hashing\HashBag.cs 297 10 Csla
Warning 4 #warning: 'We could send bag events here easily using a CircularQueue of (should?)' C:\CSLA Versions\3.6\cslacs\Csla\C5\Hashing\HashBag.cs 389 10 Csla
Warning 5 #warning: 'We could easily raise bag events' C:\CSLA Versions\3.6\cslacs\Csla\C5\Hashing\HashBag.cs 585 10 Csla
Warning 6 #warning: 'INEFFICIENT' C:\CSLA Versions\3.6\cslacs\Csla\C5\linkedlists\HashedLinkedList.cs 1452 10 Csla
Warning 7 #warning: 'must we check stamps here?' C:\CSLA Versions\3.6\cslacs\Csla\C5\linkedlists\HashedLinkedList.cs 1553 10 Csla
Warning 8 #warning: 'INEFFICIENT' C:\CSLA Versions\3.6\cslacs\Csla\C5\linkedlists\LinkedList.cs 1452 10 Csla
Warning 9 #warning: 'must we check stamps here?' C:\CSLA Versions\3.6\cslacs\Csla\C5\linkedlists\LinkedList.cs 1553 10 Csla
Warning 10 #warning: 'for bag implementation: count is wrong' C:\CSLA Versions\3.6\cslacs\Csla\C5\Trees\RedBlackTreeBag.cs 1541 10 Csla
Warning 11 #warning: 'how does this work together with persistence?' C:\CSLA Versions\3.6\cslacs\Csla\C5\Trees\RedBlackTreeBag.cs 2150 10 Csla
Warning 12 #warning: 'improve (mainly for bag) by using a Node iterator instead of ItemMultiplicities()' C:\CSLA Versions\3.6\cslacs\Csla\C5\Trees\RedBlackTreeBag.cs 2163 10 Csla
Warning 13 #warning: 'for bag implementation: count is wrong' C:\CSLA Versions\3.6\cslacs\Csla\C5\Trees\RedBlackTreeSet.cs 1541 10 Csla
Warning 14 #warning: 'how does this work together with persistence?' C:\CSLA Versions\3.6\cslacs\Csla\C5\Trees\RedBlackTreeSet.cs 2150 10 Csla
Warning 15 #warning: 'improve (mainly for bag) by using a Node iterator instead of ItemMultiplicities()' C:\CSLA Versions\3.6\cslacs\Csla\C5\Trees\RedBlackTreeSet.cs 2163 10 Csla
Error 16 The type or namespace name 'Objects' does not exist in the namespace 'System.Data' (are you missing an assembly reference?) C:\CSLA Versions\3.6\cslacs\Csla\Data\ObjectContextManager.cs 6 19 Csla
Error 17 The type or namespace name 'Services' does not exist in the namespace 'System.Data' (are you missing an assembly reference?) C:\CSLA Versions\3.6\cslacs\Csla\Data\DataServiceContextManager.cs 24 67 Csla
Error 18 The type or namespace name 'ObjectContext' could not be found (are you missing a using directive or an assembly reference?) C:\CSLA Versions\3.6\cslacs\Csla\Data\ObjectContextManager.cs 31 64 Csla
Error 19 The tag 'BrokenRuleSeverityConverter' does not exist in XML namespace 'clr-namespace:Csla.Wpf'. Line 9 Position 18. C:\CSLA Versions\3.6\cslacs\Csla\Themes\Generic.xaml 9 18 Csla
Warning 20 The referenced component 'System.Data.Entity' could not be found.
Warning 21 The referenced component 'System.Data.Services.Client' could not be found.
I think you need SP1 of VS 2008.
Joe
It says:
Microsoft Visual Studio 2008
Version 9.0.21022.8 RTM
I'll check it. Thanks.
You guys rock. Thanks for the help.
The build worked, but I got a ton (55) of "warnings". Is that normal?
OK, I checked out some of the "warnings" and it looks like they are documentation in the code. Just never seen that before.
Onward! Into the fog...
I knew it was SP1 of "something"!
Many of the warnings are related to the C5 library which is a dependency for the LinqBindingList code. It is open source so you could always join their project and resolve the warnings. <g>
Joe
If I can't get CSLA to build because I to **&@# dumb to load the service packs, I'm not sure how much I have to contribute to open source.
I'd be the guy that all the anti-open source guys would put in their power point presentations.
OTOH, I can buy beers. Any CLSA users in Indianapolis are more than welcome to take me up on that!
Thanks, Joe.
Copyright (c) Marimer LLC