VS2012 未检测到外部变化 [英] VS2012 not detecting external changes

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

问题描述

我遇到了这个奇怪的问题,当我对文件进行外部更改(例如删除文件或创建新文件)时,Visual Studio 2012 (Ultimate) 没有检测到文件更改.现在,我删除了 ~15 并在 Windows 资源管理器中复制了很多新文件,但在我的解决方案中,它显示旧文件并说它们存在问题.

I got this weird issue, when I make external changes on files (like removing a file or make new ones), Visual Studio 2012 (Ultimate) doesn't detect the file changes. Right now, I deleted ~15 and copied a lots of new files in windows explorer, but in my solution, it shows the old files and says there is an issue with them.

我打开了工具"->选项"->环境"->文档"->检测外部文件更改时..."及其下的那个.没用.

I turned on "Tools"->"options"->"Environment"->"Documents"->"Detect when file changes outside..." and the one under it. Doesn't help.

(现在,我正在处理一个 MVC4 项目.)

(Right now, I am working on an MVC4 project.)

推荐答案

我找到了一个解决方案:

I found a somewhat solution:

  • 项目->显示所有文件

  • Project->Show all files

右键单击您想要的所有内容并选择包含在项目中"

Right click on everything you want and select "include in project"

您可以对已删除的文件执行相同操作,但 VS 将您显示为一个问题.(从项目中排除)

You can do the same, with the files you already deleted, but the VS shows you as an issue. (Exclude from project)

这篇关于VS2012 未检测到外部变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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