在哪些情况下在一个解决方案中有多个项目有意义? [英] In which cases does it make sense to have multiple projects in one solution?

查看:22
本文介绍了在哪些情况下在一个解决方案中有多个项目有意义?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想知道,为什么有人要在一个解决方案中创建多个项目,如果他可以轻松地为每个项目创建一个新的解决方案.

I was just wondering, why would somebody want to create multiple projects in one solution, if he could just as easily create a new solution for each project.

决定哪种设置更好的最佳做法/论点是什么?

What are the best practices/arguments in deciding which setup is better?

推荐答案

一个解决方案中的多个项目非常常见.规范甚至.在一个项目中可以捕获整个程序是非常罕见的.一个简单的例子是单元测试.您通常希望在他们自己的项目中使用相同的解决方案,因此它们仍然易于访问.

Multiple projects in one solution is very common. The norm even. It's very rare an entire program can be captured in one project. A simple example is unit tests. You typically want those in their own project, but the same solution so they remain easily accessible.

这篇关于在哪些情况下在一个解决方案中有多个项目有意义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆