vb.net 如何在解决方案资源管理器中隐藏 bin 和 obj 文件夹

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26141001/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-17 18:18:05  来源:igfitidea点击:

How to hide bin and obj folder from being displayed in solution explorer

c#.netvb.netvisual-studio

提问by Nishanth Lawrence

I am using Visual Studio 2008.

我正在使用 Visual Studio 2008。

I have a windows forms application in VB. My project is working fine, but I would like to hide the bin and obj from being displayed in solution explorer.

我在 VB 中有一个 Windows 窗体应用程序。我的项目工作正常,但我想隐藏 bin 和 obj,以免在解决方案资源管理器中显示。

The reason being that I could see other forms application in project in similar( bin and obj not displayed in solution explorer) way all though they have the bin and obj as folders.

原因是我可以在项目中以类似的方式(bin 和 obj 未显示在解决方案资源管理器中)看到其他表单应用程序,尽管它们将 bin 和 obj 作为文件夹。

回答by ??ssa P?ngj?rdenlarp

One of the buttons at the top of Solution Explorer is to Hide/Show All Files. When on/pressed/Show, the binand objfolders show as dotted lines (may depend on themes and settings) to show they are VS folders:

解决方案资源管理器顶部的按钮之一是Hide/Show All Files。当打开/按下/显示时,binobj文件夹显示为虚线(可能取决于主题和设置)以显示它们是 VS 文件夹:

enter image description here

在此处输入图片说明

Note that when you have it as Hidesome other things are hidden. My Projectfor instance can no longer be opened/expanded:

请注意,当您拥有它时,因为Hide其他一些东西是隐藏的。例如,我的项目无法再打开/展开:

enter image description here

在此处输入图片说明

The My Projectfiles are all VS/Designer files which can be changed elsewhere (Settings tab for instance), but sometimes it is nice to just open one to check something.

我的项目文件是可以在其他地方(如设置选项卡)更改的所有VS / Designer文件,但有时它是好的,只是开一个检查一番。

Unlike C# projects, VB also hides Referencesso you cant right click it for the short Reference context menu. Add Referenceis still on the longer Projectcontext menu and of course in Project Properties.

与 C# 项目不同,VB 还隐藏了引用,因此您无法右键单击它以获取简短的引用上下文菜单。 Add Reference仍然在较长的Project上下文菜单中,当然在Project Properties 中