Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BuildVision for 2022 Causing Solution Explorer to sort Folders in different order #114

Open
BroMarduk opened this issue Dec 1, 2021 · 4 comments
Assignees
Labels

Comments

@BroMarduk
Copy link

BroMarduk commented Dec 1, 2021

After installing the preview for BuildVision for 2022, I noticed that my folders in Solution Explorer are now sorted differently. Normally they are alphabetical, but after installing BuildVision they seem to be sorted in the order the projects are loaded from the solution. (All of our projects are in folders, so I don't know if it affects the sorting of projects as well).

If I move stuff around, the next time the solution loads, it displays them in the same initial way, which is what I think is the order they are referenced in the solution file.

Normal Solution Explorer Sorting
Normal

Solution Explorer Sorting with BuildVision
BuildVision

@StefanKert
Copy link
Owner

Hi there,

this is actually very weird. I have tried reproducing this issue, but I wasn't able to get that behavior. Are you able to provide a .sln that can be used to reproduce this issue? Thanks in advance @BroMarduk :)

@StefanKert StefanKert added the bug label Feb 11, 2022
@StefanKert StefanKert self-assigned this Feb 11, 2022
@BroMarduk
Copy link
Author

BroMarduk commented Feb 12, 2022

See attached solution below and the steps to reproduce this.

Here is a test solution I used.
VideoGames.zip

  • Open Visual Studio 2022
  • Install the BuildVision extension.
  • Close Visual Studio 2022 and let extension install
  • Open Visual Studio 2022
  • Open the test solution.
  • Folders are sorted alphabetically in Solution Explorer

image

  • Open the BuildVision window (View -> Other Windows -> BuildVision)
  • Dock the window in the IDE - I docked it with my error list and output windows (see below image), but you can dock it in the IDE anywhere, it just needs to appear on restart.
  • Close Visual Studio 2022
  • Reopen Visual Studio 2022 and open the test solution

Folders are now in the Solution Explorer not in alphabetical order but in the order they were added to the solution.

image

This only occurs when the BuildVision window is docked for me and it reopens in the same place when Visual Studio is restarted. If I close the BuildVision window so it no longer appears on restart, when I reopen the solution, everything is sorted correctly.

In this example I used folders, but I can recreate the solution with top level projects and get the same result.

@willl
Copy link

willl commented Feb 23, 2022

I've observed similar happening with a solution of mine but didn't think it was possibly related to BuildVision.

I'm able to replicate this behaviour in one particular solution we have, but not others with the BuildVision window as described in the previous post. I don't even need to re-start VS 2022, just need to reload the solution (via File > Recent Projects and Solutions).

Our solution structure is something like this:

Solution folder
-> 01 FolderName
    -> Project 1
    -> Project 2
-> 02 FolderName
    -> Project 3
    -> Project 4
-> 03 FolderName
    -> 03-01 Sub Folder
        -> Project 5
        -> Project 6

@BroMarduk
Copy link
Author

After some more experimentation, I can't say 100% the window being docked is necessary. It will happen eventually even without the window docked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants