Visual Studio Project vs. Solution

Visual Studio Project vs. Solution

I find some missing information in the other answers (at least for people who come from other IDEs like, say, Eclipse) . To say that a solution is a container for projects is only part of the thing. The conceptual feature of a VS project (what determines its granularity) is that one project produces one output: typically an executable or a library (dll). So, if you are going to code three executables that uses related code, youll create one solution and at least three projects – probably more.

A solution is a container for projects, and tracks dependencies between projects.

Visual Studio Project vs. Solution

Just to come up with a metaphor..

A solution is like a house, a project like a room. Each room provides a piece of functionality whereas the house, a container of rooms, provides the means to link the rooms together and organize them appropriately.

Kind of corny but I made it up on the fly, so bear with me 🙂

Leave a Reply

Your email address will not be published.