Newbie installation problem: can't build sample solution

Newbie installation problem: can't build sample solution

Old forum URL: forums.lhotka.net/forums/t/4253.aspx


dbsaxman posted on Tuesday, January 29, 2008

    Hello, this is probably a dumb question but here goes:  I have gotten to Chapter 9 in the C# 2005 book; now attempting to actually build and run the sample app, but the reference to the Csla DLL has a warning icon, seemingly it can't find the DLL.  I've tried to follow the download instructions on the website but am obviously doing something wrong.  I compared my version with another version downloaded by a colleague, where he was apparently successful, and he seems to have files in the directory

csla20cs\ProjectTracker20cs\ProjectTracker.Library\bin\Debug

whereas I do not.  I've tried to just open up and build the ProjectTracker.Library project first, but that seems to fail on the same type of errors; the "using Csla" directives fail to compile apparently because of the inability of the compiler to find that DLL. 

(The error(s) I am getting are, for example):

Error    1    The type or namespace name 'Csla' could not be found (are you missing a using directive or an assembly reference?)    C:\ProjectTracker20cs\ProjectTracker.Library\ResourceAssignment.cs    4    7    ProjectTracker.Library

Any assistance would be appreciated, thanks.  --Dave

RockfordLhotka replied on Tuesday, January 29, 2008

The projects assume you have cslacs and ProjectTrackercs in the same directory. For example:

c:\projects\csla20cs\...

c:\projects\ProjectTracker20cs\...

And then you must build the Csla project first before attempting to build ProjectTracker.

Visual Studio uses relative paths to find the reference though, so having the projects in the same relative position is required - unless you want to run through each project in the ProjectTracker solution and remove/add a reference to Csla.dll.

Oh, and the references are for the debug build (bin\debug), so make sure you are building the Csla project in Debug, not Release.

dbsaxman replied on Tuesday, January 29, 2008

Thank you, that seemed to fix that problem... encountering other issues, but not ready to ask further questions until I do a little more homework.  Thanks again.

Copyright (c) Marimer LLC