문제

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.
도움이 되었습니까?

해결책

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.

다른 팁

It allows you to separate parts of an application. Your GUI, business logic, and data access can all be separate.

In addition, projects within a solution can reference each other with "project references". This ensures they all build with the same configuration: all Debug or all Release. Also, a projects can build when the projects they reference change.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top