Search code examples
visual-studioprojects-and-solutions

When to build\use Multiple Projects within a Solution


i am a good but not so advanced .NET Developer. This is more of a Expert to juniors knowledge transfer request.

I was thinking, in Visual Studio you can Add projects inside a solution. Of-course these projects will carry different namespace.

My question is

  • Why to build a project inside a solution
  • When it is good\useful to build multiple project inside a solution.

Solution

  • I suppose you mean more than one project in a solution, right?

    We use it mainly from a library perspective. You receive more than one assembly and in this way you can share or exchange only parts of you application. This is for example helpful if you have a bug in your application which touches only a part of your app. In this case you can fix and exchange only the bad assembly instead of the whole app.