开发者

Visual Studio 2008 Solution Explorer Randomly Expands Folders

VS 2008 is randomly opening sub-folders for me. Sometimes just a few, sometimes every sub-folder in my project or solution. This happens even when I am not using it - last night when I 开发者_运维问答knoocked off, my solution explorer was closed up tight - this morning, one large project had dozens of sub-folders open.

This is not a matter of restoring a previously saved state - most of the folders that get opened are not part of the project, and I have never looked at them with VS.

I have downloaded and installed the PowerCommands add-in, and it lets me collapse everything nicely. But I don't want to have to do this several times per day - it closes up folders that I want to be open as well.

So, does anyone know why this happens and how to stop it?

I found this question from a few months ago which is about the same as this one, but was not answered. I am hoping someone has figured out a solution.


The problem almost surely stems from someone trying to work around a wacky issue in the extensibility API which occasionally requires nodes in Solution Explorer to be programmatically expanded. Some solutions (including mine) properly clean up from expanding the nodes (collapses them to the original state), but some others leave the nodes expanded. If you have a macro or extension of some kind installed that works with project items, they might be using a poorly coded method for this action. You can read more about the underlying issue at the following link:

UIHierarchyItem from a ProjectItem


Shot in the dark, but maybe close the solution, delete the .suo file from the solution folder and restart studio?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜