Gustav Brock
Gustav at cactus.dk
Fri Jan 11 10:29:03 CST 2008
Hi Shamil and Charlotte The scenario you and Charlotte describe seems to be the right way to do it when the classlibs are under your control. What I did originally was to reference the compiled dll, and I guess there really is no reason to do so unless you don't have the source available. Then, when referencing the dll of the classlib, (re)building the classlib doesn't seem to push the changes to the main project. I agree with Shamil that VS is great. The more you work with it the more you appreciate it and all its features and how well they are thought out ... /gustav >>> shamil at users.mns.ru 11-01-2008 16:35:49 >>> Hello Gustav, You can use CTRL+SHIFT+B to rebuild classlib. What kind of programming are you doing? Depending on that you can keep (all) your classlib projects, (FEs), which use them etc. in one solution: I e.g. have here one of the solutions with 15 projects: 10+ classlibs, console-apps/-utilities, "test-bed"/unit testing classlibs/console-apps, COM-exposed classlib to use from within VBA etc. All that 15 classlibs can be recompiled in several seconds... And I do have another rather large ASP.NET 2.0 web-site solution, which does use the first solution projects' classlibs... And all works so well in ensamble that I must "take-off my hat" and say to MS Software Design Engeenier (in Test) and PMs that they did develop fantastic software development platform... I haven't seen yet VS2008 - as William told us here it's even more fantastic... -- Shamil P.S. Well, VS 2005 with ASP.NET 2.0 large website projects and complicated webforms does GPF sometimes... Still it's a fantastic set of development tool applicable for every development area and task... -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, January 10, 2008 8:19 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Compiling Class Library Hi all In VS2005 I have a project with a reference to Class Library. When I have both opened in two sessions of VS and editing both, I've found that I have to run Debug (F5) in the Class Library to have changes reflected at once in the main project. That's fine, but when I do so, the Class Library pops an error message that - of course - a "Class Library cannot be started directly". How can I get rid of this error message? Or am I doing this in an unauthorized way? /gustav