Visual Studio 2012未检测到文件更改 [英] Visual Studio 2012 not detecting file changes

查看:163
本文介绍了Visual Studio 2012未检测到文件更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

就在最近,我对解决方案和项目的配置进行了一些更改之后,Visual Studio 2012停止识别我的更改,因此,当我选择build时,不会生成更改.现在,每次我要构建项目时,我都必须选择重新构建.即使单击启动调试器,也不会检测到项目和解决方案已过期.在对文件进行更改并保存后,如果已经构建了项目,则这是构建的总输出:

Just recently after I had made some changes to configurations of my solution and project Visual Studio 2012 stopped recognizing my changes and therefore does not build my changes when I select build. I now have to select rebuild every time I want to build my project. Even clicking start debugger does not detect that the project and solution is out of date. After I make changes to a file and save it, if the project has already been build this is the total output from build:

========== Build: 0 succeeded, 0 failed, 4 up-to-date, 0 skipped ==========

通常,VS会出于这个或那个原因迭代每个不需要构建的项目和输出.感谢您的帮助.

Usually VS will iterate each project and output that it doesn't need to be built for this or that reason. Any help is appreciated.

这是重建操作的结果.项目名称和其他敏感信息已替换为*.

This is the result of a rebuild operation. Project names and other sensitive information have been replaced with *'s.

http://pastebin.com/FiGqZpui

推荐答案

我遇到了同样的问题,并发现了问题-我在解决方案的构建配置管理器中未选中项目的构建复选框.

I had the same problem and discovered the problem - I had unchecked my project's build checkbox in the solution's build configuration manager.

要检查或解决此问题,请右键单击您的解决方案,选择配置管理器",然后为您的项目选择生成"复选框.这样一来,您对项目中文件的任何更改都将在您运行应用程序或只是选择构建时强制重新构建.

To check or fix this, right click on your solution, select "Configuration Manager", and then select the "build" checkbox for your project. This will make it so any changes to files in your project will force a rebuild when you run the application or just choose to build.

这篇关于Visual Studio 2012未检测到文件更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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