Visual Studio大型解决方案 [英] Visual Studio Large Solution

查看:133
本文介绍了Visual Studio大型解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为我的Web应用程序提供了一个解决方案,其中包含近12个项目和3个网站. 我有一些用于多个网站的项目,例如MyProject.BE/MyProject.BLL/MyProject.DAL/MyProject.Controls项目.

I've got a solution for my webapplication with almost 12 projects and 3 websites. There are some projects that I use for multiple websites like MyProject.BE / MyProject.BLL / MyProject.DAL / MyProject.Controls projects.

我的问题是,为BE/BLL/DAL/Controls拥有多个项目是否很好,是否最好为BE/BLL/DAL层创建1个带有文件夹的项目?

My question is, is it good to have multiple projects for BE/BLL/DAL/Controls, of is it better to create 1 project with folders for the BE/BLL/DAL layers?

推荐答案

大"的问题是一个相对的问题.在软件开发中,这主要是您的PC的性能问题.如果您可以在一秒钟内编译并运行100个项目,那么解决方案中的100个项目将很小".因此,这实际上是一个对您有用的问题.

The question of "large" is a relative one. In software development it is mostly a question of how good your PC is. If you can compile and run 100 projects in 1 second then 100 projects in a solution is "small". So it is really a question of what works for you.

我当前的工作解决方案中包含约130个项目.是的,我们可以进行突破,但是我们有一些令人印象深刻的盒子可以处理此问题,因此拥有130个项目的成本适中至较低,而优势要大于成本.

My current work solution has about 130 projects in it. Yep, we could break it out but we have got some impressive boxes that can handle this so the cost of having 130 projects is moderate to low and advantages are bigger that the costs.

如果可以编译,运行和测试,则可以将所有项目都放在一个解决方案中.快速测试它们. Darn ...然后开始对话,讨论"quick"是什么,这是一个风格问题.如果您经常(每分钟或更快)编译和运行测试,那么快速就是几秒钟.如果您每小时编译一次,那么几分钟就可以了.

Having all of the projects in one solution is the go if you can compile, run, & test them all quickly. Darn ... that then starts the conversation onto what is "quick" and that is a style question. If you compile and run tests often (every minute or faster) then quick is seconds. If you compile and run every hour or so then minutes would be okay.

答案:做什么对你有用".

Answer: "Do what works for you".

注意:考虑解决方案文件夹.

Note: Consider solution folders.

这篇关于Visual Studio大型解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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