Visual Studio 2010刷新不起作用 [英] Visual Studio 2010 refresh not working

查看:229
本文介绍了Visual Studio 2010刷新不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在VS 2008中,我曾经能够在文件系统上创建一个文件(例如.cpp文件),然后点击VS中的刷新按钮,文件就会显示出来。我有显示所有文件选中。注意在文件系统上创建一个文件在这里,我的意思是喜欢走出去到Windows资源管理器,并创建一个新的文件,换句话说,在IDE之外。



但是,在VS 2010中,这是行不通的。我必须关闭并重新打开解决方案,否则即使点击刷新按钮,也不会看到该文件。我意识到我可以通过添加新项目添加文件,而且工作正常,但是我在编程竞赛中使用上面的技巧,也就是我有一个单独的工具在文件系统上创建文件,然后我可以刷新VS中的文件列表,看看它。



这不是一个showstopper,但它仍然是非常恼人的。只是想知道是否有人知道它的解决方法。这是我正在使用的C ++项目。

编辑
此外,这个问题似乎被隔离到 C ++ 项目,我只是用一个 C#控制台应用程序试过,刷新工作正常。



EDIT2
我在Microsoft连接网站上提出这个问题。我不知道会不会得到任何回应,但我认为这是值得的。 这里是链接。 解决方案

这在微软连接网站(见EDIT2)在原始问题的细节。 MS已经承认他们可以复制这个问题,所以希望他们能够在SP1中解决这个问题。这似乎是一个错误。


In VS 2008, I used to be able to create a file on the file system (like a .cpp file, for example), and then I could click the refresh button in VS and the file would show up. I have "Show All Files" checked. Note by "create a file on the filesystem" here, I mean like going out to windows explorer and creating a new file, in other words, outside of the IDE.

However, in VS 2010, this doesn't work. I have to close and re-open the solution or it won't see the file, even if I click the refresh button. I realize I can add the file through "Add New Item" and that works fine, but I use the technique above when competing in programming contests, that is, I have a separate tool which creates the file on the file system, and then I can just refresh the file list in VS and see it.

It's not a showstopper, but it's pretty annoying nonetheless. Just wondered if anyone knew a workaround for it. It's a C++ project I'm working with.

EDIT Also, this problem seems to be isolated to C++ projects, I just tried it with a C# console app and the refresh works ok.

EDIT2 I put an issue for this on the Microsoft connect site. I don't know if it will get any response, but I figured it's worth a shot. Here's the link.

解决方案

I put an issue for this on the Microsoft connect site (see EDIT2) in original question for details. MS has acknowledged that they can duplicate the problem, so hopefully they will resolve it in SP1. It does seem to be a bug.

这篇关于Visual Studio 2010刷新不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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