组织与&QUOT一个Visual Studio解决方案,解决方案文件夹" [英] Organizing a Visual Studio Solution with "Solution Folders"

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

问题描述

当设置了许多项目在Visual Studio .NET解决方案,你觉得解决方案文件夹有用吗?什么缺点?

When setting up a Visual Studio .NET solution with many projects, do you find "Solution Folders" useful? What are the drawbacks?

我最初的想法是,使用解决方案文件夹可能是有用的逻辑上组织像一个解决方案中的项目。不过,我很惊讶地获悉,创建一个解决方案文件夹不创建一个相应的Windows文件夹。从MSDN:

My original thought was that using Solution Folders can be useful to logically organize like projects within a solution. However, I was surprised to learn that a creating a Solution Folder does not create a corresponding Windows folder. From MSDN:

解决方案文件夹是一个   在解决方案的组织工具   资源管理器;对应的Windows   不创建的文件夹。我们推荐   你组织你的项目上   盘以同样的方式,您组织   它们在溶液中。

"Solution Folders are an organizational tool in Solution Explorer; corresponding Windows folders are not created. We recommend that you organize your projects on disk in the same way that you organize them in the solution."

我正在考虑组织的解决方案,让每一项工程都包含一个解决方案文件夹中。这是一个好主意?

I am considering organizing the solution so that every project is contained within a solution folder. Is this a good idea?

推荐答案

解决方案文件夹可以帮助组织您的项目。他们有一个很大的好处:如果你想建立一些成套项目,那么你可以将它们标记并右击它们,选择选择建设项目。 如果您的解决方案文件夹组织适合你可以简单地在一个解决方案,文件夹,右键单击并选择生成。

Solution folders can help organizing your projects. And they have one big advantage: If you want to build some sets of projects then you can mark them and right-click them and select "Build selected projects". If your solution folder organization fits you can simply right-click on a solution folder and select "Build".

我们有SLN文件夹的MainApps和测试(和其他一些)。如果你需要的所有应用程序,你建立了完整的解决方案。但是,如果你不想等待测试项目,以建立您只需单击鼠标右键,打造MainApps文件夹!

We have sln-folders for "MainApps" and "Test" (and some other). If you need all Apps, you build the complete solution. But if you don't want waiting for the Test projects to build you can simply right-click and build the "MainApps" folder!

这篇关于组织与&QUOT一个Visual Studio解决方案,解决方案文件夹"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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