VS2010持续重建 [英] Constant rebuild with VS2010

查看:76
本文介绍了VS2010持续重建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题如下:

 

1.我使用CMake创建一个项目,在VS2008上工作得很好,当我使用F7构建项目时,一切都会构建,如果再按一次F7,则已经构建的项目将不会发生任何事情.

1. Im creating a project using CMake, works just fine with VS2008, when I build the project with F7 everything builds, and if I press F7 again, nothing happens as it is already built.

 

2.如果我在VS2010中打开相同的解决方案文件(它会自动将其转换为VS2010)并执行相同的操作,则每次按F7都会从头开始重建所有内容.

2. If I open the same solution file in VS2010 (it automatically convert it to VS2010) and do the same, everytime I press F7 it rebuilds everything from scratch.

如果我将项目缩减为一(1)个源文件,则问题仍然存在.如果我尝试将此项目/源移动到新目录(以便能够提交它以进行错误报告),那么它将起作用. (它是F7,无需重建).

If I reduce the project down to one (1) source file the problem remains. If I try to move this project/source into a new directory (to be able to submit it for bug-report) it works. (That is F7 it builds and no need of rebuild).

 

有人建议该项目包含对不存在的.h文件的引用,在这里不是这种情况.

Some suggests that the project contains references to non-existing .h files, which is not the case here.

如果我从以前的版本(.obj等)中删除所有内容,并将项目保留在一个源文件中,它将开始正常工作(按F7键无需重建).

If I remove everything from the previous build (.obj etc.) and keep the project with one source file, it starts to work (pressing F7 builds no need for rebuild).

所以现在,我很困惑.关于如何调试它的任何建议?

So right now, Im quite confused. Any suggestions of how to debug this?

完整的项目始终会重建,

The full project always rebuilds,

一步一步地减少它可以缩小到一个(.cpp)文件.但是,我无法将其移动到另一个目录中以进行重现.
因此,关于文件日期/相关性等方面我有些无法理解.

reducing it step by step can be done down to one (.cpp) file. However, Im unable to move that into another dir, to reproduce it.
So there is something about file dates/dependency etc which I cannot understand.

这是我们现在升级到VS2010的方式.

This is in the way for our upgrade to VS2010 right now.

 

推荐答案

我的问题如下:

My problem is the following:

 

1.我使用CMake创建一个项目,在VS2008上工作得很好,当我使用F7构建项目时,一切都会构建,如果再按一次F7,则已经构建的项目将不会发生任何事情.

1. Im creating a project using CMake, works just fine with VS2008, when I build the project with F7 everything builds, and if I press F7 again, nothing happens as it is already built.

 

2.如果我在VS2010中打开相同的解决方案文件(它会自动将其转换为VS2010)并执行相同的操作,则每次按F7都会从头开始重建所有内容.

2. If I open the same solution file in VS2010 (it automatically convert it to VS2010) and do the same, everytime I press F7 it rebuilds everything from scratch.

如果我将项目缩减为一(1)个源文件,则问题仍然存在.如果我尝试将此项目/源移动到新目录(以便能够提交它以进行错误报告),那么它将起作用. (它是F7,无需重建).

If I reduce the project down to one (1) source file the problem remains. If I try to move this project/source into a new directory (to be able to submit it for bug-report) it works. (That is F7 it builds and no need of rebuild).

 

有人建议该项目包含对不存在的.h文件的引用,在这里不是这种情况.

Some suggests that the project contains references to non-existing .h files, which is not the case here.

如果我从以前的版本(.obj等)中删除所有内容,并将项目保留在一个源文件中,它将开始正常工作(按F7键无需重建).

If I remove everything from the previous build (.obj etc.) and keep the project with one source file, it starts to work (pressing F7 builds no need for rebuild).

所以现在,我很困惑.关于如何调试它的任何建议?

So right now, Im quite confused. Any suggestions of how to debug this?

完整的项目始终会重建,

The full project always rebuilds,

一步一步地减少它可以缩小到一个(.cpp)文件.但是,我无法将其移动到另一个目录中以进行重现.
因此,关于文件日期/相关性等方面我有些无法理解.

reducing it step by step can be done down to one (.cpp) file. However, Im unable to move that into another dir, to reproduce it.
So there is something about file dates/dependency etc which I cannot understand.

这是我们现在升级到VS2010的方式.

This is in the way for our upgrade to VS2010 right now.

 


这篇关于VS2010持续重建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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