Visual Studio中构建项目我每次运行 [英] Visual Studio Builds Projects Every Time I Run

查看:157
本文介绍了Visual Studio中构建项目我每次运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2010 .NET解决方案与一群项目。直到最近,当我从IDE中运行的启动项目,项目将只有改变已作出的code无论是在启动项目或相关项目之一构建。

I have a .NET solution in Visual Studio 2010 with a bunch of projects. Up until recently, when I would run the startup project from within the IDE, projects would only build if changes had been made to the code in either the startup project or one of the dependency projects.

大约两个星期前,我注意到,每次运行启动项目时,Visual Studio中建立的所有项目,大约需要7分钟。不用说,这是采取了大量的时间我的天,我已经尽我所能看网上的解决方案,但还没有找到解决我的问题的具体解决方案,任何

About two weeks ago I noticed that every time I run the startup project, Visual Studio builds all projects, which takes about seven minutes. Needless to say this is taking a large amount of time out of my day, and I've tried my best to look online for solutions, but have yet to find any solutions that address my specific problem.

这是一些额外的信息片段 - 同样的问题开始发生在其他人在我身边,我就开始遇到此问题的同时团队

A few additional pieces of information - the same problem began happening to everyone else on my team around the same time that I began experiencing this issue.

我们还使用源$ C ​​$ C库。由于我们没有在Visual Studio中更改任何设置,我怀疑是有人无意中改变的东西在源$ C ​​$ C对于一些项目,现在要求所有项目建设的每一次。

We are also using a source code repository. Since we didn't change any settings in Visual Studio, my suspicion is that someone inadvertently changed something in the source code for some project that now requires all projects to build every time.

任何建议,将不胜AP preciated - !谢谢

Any suggestions would be GREATLY appreciated - thank you!

推荐答案

原因可能是很多事情,所以无需您的解决方案+项目,我们只能猜测。

The cause could be many things, so without having your solution + projects, we can only guess.

典型的方式我处理这个问题是通过用二进制搜索缩小下来。即,

The typical way I handle this problem is by narrowing it down with a binary search. That is,

  1. 在我建立的一切。
  2. 接下来,我找到的东西在构建顺序的中间,构建项目。如果东西,该项目依靠的是罪魁祸首,你会遇到问题。如果某样东西,它不依赖于有问题,你会不会(即它会说所有的项目跳过)。
  3. 现在,你,直到你缩小它(希望)的的已经启动的项目引起该问题重复此过程。
  1. I build everything.
  2. Next I find something in the middle of the build order and build that project. If something that that project depends on is the culprit, you'll experience the issue. If something that it doesn't depend on has the problem you won't (i.e. it will say all projects skipped).
  3. Now you repeat this process until you narrow it down to (hopefully) the project that has started causing the problem.

(当然)这只能如果是,引入了新的问题(这是可能的)。

This (of course) only works if there is a single project that introduced the new problem (which is likely).

一个在我的具体情况的元凶是有一个64位的项目引用未选择待建的64位配置的86项目。

One of the culprits in my specific situation was having an x64 project reference an x86 project that wasn't selected to be built in the x64 configuration.

这篇关于Visual Studio中构建项目我每次运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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