Visual Studio 不断构建一切 [英] Visual Studio keeps building everything

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

问题描述

我有一个包含许多项目的大型 .sln 文件.

I have a large .sln file with many projects.

我刚刚对项目 A 进行了更改,它构建了其他九个项目 A 引用的项目,但没有更改代码.

I just made a change in project A and it builds nine other projects that project A references, but that had no code change.

有什么技巧可以加快这个过程吗?

Is there a trick to speed this process up?

推荐答案

分而治之:通过创建包含您正在处理的项目的逻辑子集的其他解决方案来限制解决方案中的构建时间.这会限制您的范围并加快构建速度.

Divide and conquer: Limit the amount of build time that goes on in your solution by creating additional solutions that contain logical subsets of projects you're working on. This limits your scope and will speed up builds.

请参阅此 MSDN 文章中的分区单一解决方案模型:http://msdn.microsoft.com/en-us/library/ee817674.aspx

See the The Partitioned Single Solution Model in this MSDN article: http://msdn.microsoft.com/en-us/library/ee817674.aspx

文章中的关键引述:

Separate solution files allow you to work on smaller subsystems within your overall system 
but retain the key benefits of project references. Within each subsolution file, 
project references are used between constituent projects.

这篇关于Visual Studio 不断构建一切的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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