每次运行它时,如何修复视觉工作室的项目过期的消息 [英] How to fix visual studio 'projects out of date' message each time I run it

查看:103
本文介绍了每次运行它时,如何修复视觉工作室的项目过期的消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个可视化工作室(2005)的解决方案文件,共有70个项目。

每次我按F5运行它,它告诉我有4个项目已经过期了,并问我是否我想重建他们。即使我完成了一个完整的工作,也可以这样做。

我理解(原则上)其他项目之一必须更新这些项目所依赖的内容,但是我如何去找出什么?



是否有任何帮助的工具,或者应该遵循什么程序来弄明白什么是导致VS将这些项目标记为重建?



更新:

对于那些感兴趣的人,看起来像我的电脑是/是问题(我的高清最近一直在表演)。当我试图跟踪问题时,连续的重建开始生成编译错误。我做了一个干净和构建,并有大量(显然是虚假的)错误。一个重新启动后,随后重建,所有的错误和依赖性问题已经消失了。

现在请问我,并且备份我所有重要的文件...

解决方案

我将连续两次运行一个普通的Build。第二次,我将MSBUILD的详细程度设置为正常或更高(在工具 - >选项,项目和解决方案,构建和运行中)。仔细阅读输出,以查看实际构建的内容实际上,现在我想到了,如果这真的是一个循环,那么第二次构建的一部分就是造成它的原因建立第三次等等。也许你有一个项目中的一个项目中涉及一个组件或其他资源用作早期步骤的输入。在解决方案中有70个项目,这样很容易您可能需要学习足够的MSBUILD才能检测到其中一个步骤是否决定需要构建,因为某些更改,然后了解您的解决方案足够好,知道什么都不应该改变;然后看看有些已经更改了不应该更改。



当你完成thi您可能已经获得了一些洞察力,使您能够帮助将解决方案分解成更小的解决方案。


I have a visual studio (2005) solution file with 70 projects.
Each time I press F5 to run it, it tells me that 4 of the projects are out of date, and asks me if I want to rebuild them. It does this even though I have just done a full build.
I understand (in principle) that one of the other projects must update something that these projects depend on, but how do I go about finding out what?

Are there any tools to help, or what procedure should I follow to figure out what is causing VS to flag these projects for a rebuild?

UPDATE:
For those interested it looks like my PC was/is the problem (my HD has been acting up recently). As I tried to track down the problem successive rebuilds started generating compile errors. I did a clean-and-build and got a huge number of (obviously spurious) errors. One reboot later, followed by a rebuild, all the errors and the dependency problem have gone away.
Excuse me now, while I go and back-up all my important files...

解决方案

I would run a normal Build, twice in a row. The second time, I'd set the MSBUILD verbosity to "Normal" or higher (in Tools->Options, "Projects and Solutions", "Build and Run". I'd read the output carefully to see what gets actually built the second time.

In fact, now that I think of it, if this really is a cycle, then some part of what gets built the second time must be what's causing it to build the third time, etc. Perhaps you have a post-build step in one of the projects that touches an assembly or other resource used as input to an earlier step. With 70 projects in the solution, something like this would be easy to cause inadvertently, and hard to catch. You may have to learn enough about MSBUILD to be able to detect when one of its steps is deciding it needs to build because something changed, then to understand your solution well enough to know that nothing should have changed; then to see that something has changed that should not have changed.

When you're done with this exercise, you may have gained some insight that will enable you to help in breaking the solution into smaller solutions.

这篇关于每次运行它时,如何修复视觉工作室的项目过期的消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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