Visual Studio未检测到更改. [英] Visual Studio not detecting changes.

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

问题描述

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

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:

通常,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.


此外,我们已经在另一台计算机上签出了此提交,并且没有相同的问题.我还尝试过重新克隆不起作用的存储库,并卸载/重新安装也不起作用的Visual Studio.


Additionally we have checked out this commit on a different machine and it did not have the same problem.  I have also tried re-cloning the repo which did not work, and uninstalling/reinstalling visual studio which also did nothing.

推荐答案

在项目内部,有一个bin文件夹,其中包含两个子文件夹Debug和Release.这些子文件夹出了点问题.最好的办法是备份bin文件夹,然后只删除整个bin文件夹. VS 如果不存在,将重建bin文件夹,这应该可以解决问题.

Inside a project there is a bin folder with two subfolders Debug and Release.  Something is wrong with these subfolders.  The best thing to do is to make a backup of the bin folder and then just delete the entire bin folder.  VS will rebuild the bin folder if it doesn't exist which should correct the issue.

之所以经常出现这种问题,是因为用户手册将文件添加到了bin文件夹中.我不建议将任何文件手动添加到bin文件夹中.

Often problem like this occur because the user manual added files to the bin folder.  I do not recommend adding any files manually into the bin folder.


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

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