简体   繁体   English

Visual Studio 2015 - 缺少解决方案资源管理器分支中的内容

[英]Visual Studio 2015 - missing content in solution explorer branches

Here my issue: 我的问题在这里:

It seems the solution explorer is not displaying the content of the expanded solution tree. 解决方案资源管理器似乎没有显示扩展解决方案树的内容。 It only shows the the first level of the tree. 它只显示树的第一级。 If you click expand all or expand the branch out it's empty. 如果单击展开全部或展开分支,则为空。 Ok, I know they are part of the solution by be able to see them in the disk structure and they get compiled and can be checked by plugins like "codemaid". 好的,我知道它们是解决方案的一部分,能够在磁盘结构中看到它们并且它们被编译并且可以通过像“codemaid”这样的插件来检查。 This occurs on new projects and old projects. 这发生在新项目和旧项目上。

I tried all sorts of things with the different filters and all the settings I can find, but I would think if the filters where off and show all files on you see either things in the project. 我用不同的过滤器和我能找到的所有设置尝试了各种各样的东西,但是我想如果过滤器关闭并显示你上面的所有文件,你会看到项目中的任何东西。 Oh and yea I selected both the solution and project branches. 哦,是的,我选择了解决方案和项目分支。

I have ran the repair and did a install and reinstall of VS2015, and searched the web for months :) This really all started with me organizing my code into sub folders and not showing up in the explorer. 我已经运行了修复并安装并重新安装了VS2015,并在网上搜索了几个月:)这一切都始于我将我的代码组织到子文件夹而不是在资源管理器中显示。 So I been writing a lot of "flat" code where the classes are in the root of the project. 所以我写了很多“扁平”代码,其中类在项目的根目录中。 Older version of VS are still working correctly (right now I have to reinstall because I removed them). 旧版本的VS仍然正常工作(现在我必须重新安装,因为我删除了它们)。

My current train of thought to resolve this is track down the tree object and make sure it's a up-to-date object. 我目前解决这个问题的思路是跟踪树对象并确保它是一个最新的对象。

VS视觉错误截图

The problem described in this link sound just like your (and currently my) problem: 此链接中描述的问题听起来就像您(以及当前我的)问题:

https://community.flexerasoftware.com/showthread.php?219321-Visual-Studio-2015-Solution-Explorer-nodes-do-not-show-files-for-other-projects https://community.flexerasoftware.com/showthread.php?219321-Visual-Studio-2015-Solution-Explorer-nodes-do-not-show-files-for-other-projects

So, it seems there is a bug in VS2015. 所以,似乎VS2015中存在一个错误。 InstallShield triggers it. InstallShield会触发它。 Maybe other add-ons do also. 也许其他附加组件也可以。

If I have an InstallShield project loaded in a 2015 solution, I only get one level of files, (ie the filters show nothing). 如果我在2015解决方案中加载了InstallShield项目,我只获得一个级别的文件(即过滤器不显示任何内容)。 If I unload the InstallShield project and refresh the Solution Explorer (eg toggle show all on a per project basis, or close and re-open the project) then all my files show up again! 如果我卸载InstallShield项目并刷新解决方案资源管理器(例如,在每个项目的基础上切换显示全部,或者关闭并重新打开项目),那么我的所有文件都会再次出现!

It happened to me too after a crash. 一次撞车事故发生在我身上。 I didn't know why some of my projects disappeared all the sudden. 我不知道为什么我的一些项目突然消失了。 After some digging, I found there was a menu item called Unhide Folders if you right-clicked on the solution in the Solution Explorer. 经过一番挖掘后,如果您在解决方案资源管理器中右键单击解决方案,我发现有一个名为Unhide Folders的菜单项。 Selecting it will bring back your folder and projects. 选择它将带回您的文件夹和项目。 At lease it has worked for my case. 至少它适用于我的情况。

The sad thing is that vs2015 won't tell you that your solution is in a folder-hidden mode. 令人遗憾的是,vs2015不会告诉您解决方案处于文件夹隐藏模式。 :( :(

I stumbled over the problem, apparently down the line a plug-in had boinked it, When I reinstalled it and removed it (again) it fixed it. 我偶然发现了这个问题,显然是一个插件已经下线了,当我重新安装它并将其移除(再次)它修复了它。

In the process of updating, and reinstalling, and removing the plug-in the problem fixed itself. 在更新,重新安装和删除插件的过程中,问题自行解决。

It was fixed the 3rd time I went down the extension list and remove all the removable extensions. 我第3次进入扩展名列表并删除了所有可移动扩展程序。 And happen to check the for the problem before the many hours it would take to repair it. 并且在修复它之前需要花费很多时间来检查问题。

But, I have no clue which one(s) caused it, and going to keep closer eye on it as I work on it. 但是,我不知道是哪一个引起了它,并且在我努力的时候会密切关注它。

My feelings it was left over garbage from all the upgrades that where going on from VS2010 to VS2015. 我的感觉是从VS2010到VS2015的所有升级中留下的垃圾。 But I do know this has always happened since I install VS2015 on this computer, now I am happy it working correctly now. 但我知道自从我在这台电脑上安装VS2015以来总是这样,现在我很高兴它现在正常工作。 Thanks for all the help including the nice editor :) 感谢所有的帮助,包括漂亮的编辑器:)

In my case it seems to have been the Mexedge Stylesheet Extension 2.4 that caused the problem. 在我的情况下,似乎是导致问题的Mexedge样式表扩展2.4 I disabled it and restarted VS and the problem was gone. 我禁用它并重新启动VS,问题就消失了。

Before that I made various attempts with restarting VS and unloading individual projects in the solution, but with no luck. 在此之前,我做了各种尝试,重新启动VS并卸载解决方案中的单个项目,但没有运气。

I don't know if the latest version of the extension (2.6) works better. 我不知道扩展(2.6)的最新版本是否更好。

在解决方案资源管理器中随机打开/关闭节点(尤其是解决方案节点)可以为我修复可视错误。

It happened to me as a result of having multiple namespaces in my classes/XAML pages. 由于在我的classes / XAML页面中有多个名称空间,我发生了这种情况。 I wasn't able to see class files in one of my folders in the Solution Explorer. 我无法在解决方案资源管理器中的某个文件夹中看到类文件。 Once I got them all in the same namespace and restarted Visual Studio, it returned to normal. 一旦我将它们全部放在相同的命名空间中并重新启动Visual Studio,它就会恢复正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual Studio 2015解决方案资源管理器树视图中缺少文件图标 - File Icons are missing in Visual Studio 2015 Solution Explorer Tree View Team Explorer Visual Studio 2015缺少排除 - Team Explorer Visual Studio 2015 missing Exclude Visual Studio 2015中的解决方案资源管理器菜单缺少jspm软件包和config.js - Solution explorer menu in Visual Studio 2015 is missing jspm packages and config.js Visual Studio 2015解决方案资源管理器不刷新文件? - Visual studio 2015 solution explorer doesn't refresh files? 在Visual Studio 2015中更改解决方案资源管理器工具窗口的标题 - Changing the title of the Solution Explorer tool window in visual studio 2015 Visual Studio 2015项目存在,但不再显示在解决方案资源管理器中 - Visual Studio 2015 Project exists but no longer shown in Solution Explorer 在Visual Studio 2015中切换分支 - Switching branches in Visual Studio 2015 在Visual Studio 2015服务器资源管理器中缺少Azure组件 - Missing Azure Components in Visual Studio 2015 Server Explorer Visual Studio 2015 Update 2团队资源管理器缺少“排除” - Visual Studio 2015 Update 2 Team Explorer Missing 'Exclude' Visual Studio 2015没有构建解决方案 - Visual Studio 2015 not building solution
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM