[dba-VB] Projects vs Solutions

Charlotte Foust cfoust at infostatsystems.com
Wed Nov 18 13:03:55 CST 2009


A project IS part of the solution.  The solution is the outer namespace for the application.  It contains projects.  Your current situation is the way we do it (I think).  The several projects don't contain references to one another unless you create them by right clicking the project and select Add Reference.

Charlotte Foust

-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby
Sent: Wednesday, November 18, 2009 10:55 AM
To: Discussion concerning Visual Basic and related programming issues.
Subject: Re: [dba-VB] Projects vs Solutions

Using projOther doesn't work.

When doing this is the project allowed to be a part of the solution?  Is it even SUPPOSED TO BE a part of the solution.  IOW are you supposed to create projects as separate entities and then reference them from other projects, or can you create SolutionMain / ProjMain / projOther1 /
projOther2 etc.  I have the latter situation (now).  When I try to do "Using projOther1;" from inside of ProjMain it says that ProjOther doesn't exist.

This whole area seems poorly documented and rather messy.  Lots of chatter on Google about how difficult it is to move a project and so forth.

This is the kind of stuff I hate to even get involved in.  I am trying to get work done but get sucked off into areas where it certainly looks like I could easily wreak havoc on working code.

John W. Colby
www.ColbyConsulting.com


Gustav Brock wrote:
> Hi John
> 
> In addition to the comments from Charlotte:
> 
> Also, you can either add in your project
> 
> Using ProjectOther;
> 
> or state this explicitly
> 
> ProjectOther.MyFormName someName = new ProjectOther.MyFormName(); 
> someName.Show();
> 
> /gustav
> 
>>>> jwcolby at colbyconsulting.com 18-11-2009 18:57 >>>
> OK, this immediately causes issues referencing objects in another 
> project.  For example I have a "main" project, and a "CSVRepair" 
> project.  The Main project form opens when I run the project but I 
> then need to be able to open a form in the other project where I gather information about the file to fix.
> 
> The objects in that other project aren't visible in intellisense.
> 
> "Normal" opening of a form is done with something like
> 
> MyFormName Somename = new MyFormNname(); SomeName.Show();
> 
> Well... MyFormName is not valid in project main.
> 
> While we are on the subject, what happens if I just need to dimension a class used in project CSVRepair?
> 
> John W. Colby
> www.ColbyConsulting.com
> 
> 
> Charlotte Foust wrote:
>> Think of the solution as the application.  The projects within the solution can be shared with other applications.  We use the projects primarily to group parts of our apps, like UI, Reports, Data, Configuration, Security, etc., but it really is up to the architect of the app.
>>
>> Charlotte Foust
> 
> 
> _______________________________________________
> dba-VB mailing list
> dba-VB at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/dba-vb
> http://www.databaseadvisors.com
> 
> 
_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com





More information about the dba-VB mailing list