[dba-VB] Add executable solution to project

Mike & Doris Manning mikedorism at verizon.net
Fri Jul 22 10:35:11 CDT 2005

Do your debugging work on the class through the project that references
them.  Just right click on a property or method of the class object and
choose "Definition".  You will then be taken to the class itself.

The really cool part about all this is that any changes you make to the
class object will automatically be picked up by any other project that
references that class dll.

Doris Manning
Database Administrator
Hargrove Inc.

-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby
Sent: Friday, July 22, 2005 11:24 AM
To: dba-vb at databaseadvisors.com
Subject: [dba-VB] Add executable solution to project

I am working on a set of classes in a project which need 

Imports System.Data.OleDb
Imports System.Data
Imports System.Collections

I was developing them in a class library, and all is cool.  However I can't
just throw a form in there and run the thing to test it, I get a "cannot be
started directly" error.  So... I tried just copying the classes (all in one
module, THAT is cool) into a window project.  Of course(?) now the imports
don't work.  Sigh.

So I created a Window project and referenced the dll from my class library.
That is cool as well, however... I really want to interactively debug the
class library.  The error message when trying to run the class library code
(directly) says to "add an executable project to this solution which
references the library project".  I can't seem to find any way to directly
add my window project (which references the class library) to the class
library solution.  

Anybody know how to do this?  

This BTW is exactly why I have never gotten anywhere with .net so far.  I
promptly get bogged down in details with no readily available help.

John W. Colby

Contribute your unused CPU cycles to a good cause:

dba-VB mailing list
dba-VB at databaseadvisors.com

More information about the dba-VB mailing list