VS2010SP1:调试时项目总是过时
我之前在VS2010中遇到过这个问题,并解决了这个问题 所以问题。然而,现在我将VS升级到SP1后,它又出现了。我尝试以同样的方式解决它,启用 C++ 项目日志记录并使用 DebugView 。但无论我做什么,我都无法在 DebugView 中看到任何输出。我还尝试提高构建输出的详细程度(工具->选项->项目和解决方案->构建并运行),但找不到任何线索。
与最初的问题一样,报告为过时的项目始终是非托管 C++ 项目。该解决方案有 C#、VB.NET、C++/CLI 和 C++ 项目。我试图运行的是一个 VB.NET exe,它通过 C++/CLI 包装器使用一些 C++ 项目。
有关如何解决此问题的任何提示?
更新:通过干净的结账解决了这个问题。然而,遗憾的是,已经没有办法解决此类错误了......
I experienced this problem in VS2010 before, and solved it looking at this SO question. However, now that I upgraded my VS to SP1, it appeared again. I tried to solve it the same way, enabling C++ projects logging and using DebugView. But I can't get to see any output in DebugView, no matter what I do. I also tried raising the Build output verbosity (Tools->Options->Projects and Solutions->Build And Run), but couldn't find any clue.
As in the original problem, the projects reported as out of date are always unmanaged C++ projects. The solution has C#, VB.NET, C++/CLI and C++ projects. What I'm trying to run is a VB.NET exe which uses some C++ projects through C++/CLI wrappers.
Any hint on how to troubleshoot this?
UPDATE: Solved it with a clean checkout. However, it's a shame that there is no longer a way to troubleshoot this kind of errors...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否有可能使用未来的日期进行测试并保存未来的源文件?虽然清理/重建都应该解决这个问题,但 VS 似乎变得疯狂并停留在那里,直到我重新保存当前的文件。
如果你只有版本控制中的源代码,有时可以解决这些问题的最后一招就是像重新启动一样工作:签入所有内容,关闭 VS 和项目中使用文件的任何内容,将所有项目文件夹移动到备份文件夹,并强制获取每个文件夹的最新版本。有时“干净的项目”并不能解决问题。
如果这不起作用并且您找不到丢失的 .h ...您可以随时启动进程监视器,设置过滤器并在那里挖掘。
诚然,一切都只是在黑暗中进行。希望有人能击中窃贼! ;-)
Is it possible you were testing with the date in the future and saved a source file in the future? While clean/rebuild all should fix this, VS seems to go batty and stay there until I resave the file in the present.
Another last-ditch thing that sometimes solves these problems that works 'like a reboot' if you have just the source-code in version control: Check everything in, close VS and anything using files in your project, move all your project folders to a backup folder, and do a force-get latest version of each. Sometimes 'clean project' doesn't cut it.
If that doesn't work and you can't find a missing .h ... You can always fire up Process Monitor, set a filter, and dig in there.
Admittely all just stabs in the dark. Hope one hits the burgler! ;-)
编译器升级后,如果您尚未执行此操作,则应该执行全部重建。
对于本机 C++ 项目,如果项目中有一些实际上并未存在的包含文件,您可能会遇到“项目已过时”的情况,但仍然无法构建任何内容。就像您删除了一些未使用的 .h 文件,但它们仍然是项目的一部分。
After a compiler upgrade you should do a rebuild-all, if you haven't done that already.
For native C++ projects you can get "project out of date", but still nothing to build, if you have some include files in your project that doesn't actually exits. Like if you have deleted some unused .h files, but they are still part of the project.