Shamil Salakhetdinov
shamil at smsconsulting.spb.ru
Wed Nov 18 14:04:58 CST 2009
John -- Just make an experiment with a test solution from scratch: - start VS; - create C# Console project - TestConsole - that will create a project TestConsole and a solution - TestConsole; - File->New->Project... - create C# Class Library project - MyClassLib1; - File->New->Project... - create C# Class Library project - MyClassLib2; - ... - Right-Click TestConsole project in Solution Explorer -> Add Reference -> [Projects] (third tab) -> Select MyClassLib1; - ... - now in TestConsole Program.cs you can type: using MyClassLib1; and you'll have Class1 (from MyClassLib1 - MyclassLib1.Class1) available to Intellisense.... -- Shamil -----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:41 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Projects vs Solutions OK, let's back up a minute. I created a project InfoEngine. I created another project ScanCSVForErrors. I created another project MergePurge. Etc. Each one of these is both a solution and a project. What I mean by that is that when you open Visual Studio you "Create" projects, at least unless you do some unknown thing. There is no "New Solution", there is only "new project". Except that: a) I really want the Solution to be InfoEngine. b) I would PREFER that the other projects be physically stored under InfoEngine. c) Of course I want these projects to be considered by the SOLUTION InfoEngine to belong to the solution InfoEngine. d) Each of these "projects" contains a solution file. So what is it, a solution or a project? Is this a "start over stupid" kind of moment? Is it just me or is this whole Solution / Project thing extremely poorly defined? Why do we discuss Solutions and can't even purposely create one? Why does a project get a solution file if it is a project? What the hell IS a solution? Where are the tools for migrating existing projects into a solution? By the by, I have a solution explorer up and it contains two projects now, but I can't reference, EVEN PURPOSELY directly in code, objects in one project from the other project. It just tells me "doesn't exist". And so... instead of writing a solution (or is that a project? Or perhaps a project in a solution???), I walk around the forest in circles. John W. Colby www.ColbyConsulting.com Charlotte Foust wrote: > 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 __________ Information from ESET NOD32 Antivirus, version of virus signature database 4618 (20091118) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru