当我单击“解决方案资源管理器”的刷新按钮时,Visual Studio为什么不刷新文件夹? [英] Why doesn't Visual Studio refresh the folders when I click the Solution Explorer refresh button?

查看:436
本文介绍了当我单击“解决方案资源管理器”的刷新按钮时,Visual Studio为什么不刷新文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio 2008中,我可以在我的解决方案资源管理器中看到所有项目文件,并且这些文件存在于实际的目录中。

In Visual Studio 2008, I can see all my project files in my Solution Explorer, and these files exist in an actual diectory.

但是,如果我添加一个文件到该目录(例如,App_Data文件夹中的test.sqlite文件,或其他程序创建的图像),那么即使单击刷新按钮,这些文件也不会出现在我的解决方案资源管理器中。

However, if I add a file to that directory (let's say, an test.sqlite file in the App_Data folder, or say, images created by some other program), then these files do NOT appear in my Solution explorer, even if I click the refresh button.

如何使其他应用程序创建的文件出现在我的解决方案资源管理器中?

How can I make files created by other applications appear in my Solution Explorer?

(到目前为止,我必须在其他位置创建它们,然后将其复制并粘贴到解决方案资源管理器中,但必须有一种更简单的方法。)

(so far, I have to create them somewhere else, then copy and paste them into the solution explorer itself, but there must be an easier way).

此伪解决方案视图是否有优势,即我可以在App_Data目录中拥有文件 test.sqlite,但在我的解决方案中,它可能出现在我的根目录中。来自Eclipse WYSIWYG Solution Explorer的心态,我看不到拥有有关目录中实际文件的额外虚拟元信息的优点。

Is there an advantage to this "fake solution view", i.e. I could have a file "test.sqlite" in my App_Data directory but in my solution, it could be appearing in my root directory. Coming from an Eclipse WYSIWYG Solution Explorer mindset, I don't see the advantage of having this extra virtual meta-information about the actual files in your directory. Is there a way you get an advantage out of this metaphor?

推荐答案

在解决方案资源管理器的顶部是一个切换按钮 显示所有文件,这将使其包括显示中的所有文件,即使这些文件未包含在项目中。这些图标将变灰。然后只需使用上下文菜单将它们添加到项目中即可。

At the top of the solution explorer is a toggle button "Show All Files" this makes it include all files in the display even if they aren't included in the project. The icons for these will be grayed out a bit. Then just use the context menu to add these to the project.

这篇关于当我单击“解决方案资源管理器”的刷新按钮时,Visual Studio为什么不刷新文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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