之所以VS 2008项目正在每次重建 [英] Reason why a VS 2008 project is being rebuilt each time

查看:142
本文介绍了之所以VS 2008项目正在每次重建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法找出原因的一个项目就是这个道理正在重建每次 构建选择操作是在2008年发行的VS?

Is there a way to find out the reason why a project is being rebuilt each time a Build Selection operation is issued in VS 2008?

我一直在努力,甚至从删除所有依赖构建\\配置管理器(选中所有组件构建列,但一有问题)。

I've tried to even remove all dependencies from the Build\Configuration Manager (unchecked the build column for all assemblies, but the one in question).

我得到相同的结果:每次组件重建

I get the same result: the assembly is rebuilt each time.

我不得不提,所有的依赖都建立在同一个目录下(有一个共同的输出目录)。

I have to mention that all the dependencies are built in the same directory (there is a common Output Directory).

其实这不是对我很清楚什么是VS / MSBuild的算法来决定一个项目是否应该被重建或没有。它检查是否存在有上次访问NTFS时间戳比对有问题的装配一个新的依赖(文/集)?或许我可以尝试搜索了违规的文件这样的。

Actually it's not very clear to me what is the VS/MSBuild algorithm to decide whether a project should be rebuilt or not. Does it check to see whether there are dependencies (files/assemblies) that have the Last Access NTFS timestamp newer than the one on the assembly in question? Maybe I could try to search for the "offending" file this way.

推荐答案

我还没有找到问题的根源,但已经找到一种方法来摆脱的效果:

I have not found the root cause of the problem, but have found a way to get rid of the effects:

GetLatestVersion (与覆盖现有选项)。

GetLatestVersion (with the "overwrite existing" option).

现在一切正常。

这是我发现后,不幸的是我已经覆盖与工作区的版本本地项目文件一件事:有在工具 - 选项 - 项目和解决方案,构建和运行MSBuild项目生成输出的详细程度选项

One more thing that I found out, unfortunately after I have overwritten the local project files with the Workspace version: there is an option in Tools-Options-Projects and Solution-Build and Run-MSBuild project build output verbosity.

这个选项默认设置为最小。如果将详细诊断将记录许多有趣的消息在输出窗口编译一个项目时。它可以给我指点,为什么该项目每次都被编译。

This option is set to Minimal by default. If set on Detailed or Diagnostic will log a lot of interesting messages in the Output Window when compiling a project. It may have given me pointers as to why the project was being compiled each time.

这篇关于之所以VS 2008项目正在每次重建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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