question

KulerMaster-6431 avatar image
0 Votes"
KulerMaster-6431 asked YijingSun-MSFT answered

Visual Studio 2022 Bin folder expanding in Solution Explorer

Hello,
As soon as I open the project (ASP.NET WebForms) I see that Bin folder is expanded in Solution Explorer.
Is there an option that I can set in order to prevent this behavior?
Thank you very much

dotnet-csharpdotnet-aspnet-webforms
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

YijingSun-MSFT avatar image
1 Vote"
YijingSun-MSFT answered

Hi @KulerMaster-6431 ,
According to your description, I tried the brother's answer above and it has some minor flaws. I think, you need to check "Track Active Item in Solution Explorer" and uncheck "Restore Solution Exporer project hierarchy state on solution load".
Press Tools--> Options-->Projects and Solutions-->General
149267-capture.png
Best regards,
Yijing Sun


If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


capture.png (32.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Viorel-1 avatar image
0 Votes"
Viorel-1 answered

Try unchecking the "Show All Files" button that is shown in Solution Explorer's toolbar.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

KulerMaster-6431 avatar image
0 Votes"
KulerMaster-6431 answered KulerMaster-6431 edited

Hmm I am aware of that solution but I want to keep the bin folder like it was shown in VS 2019 - grayed BUT collapsed.
I want to be able to right click the bin and select "Open Folder in File Explorer". If I toggle Show All Files, I don't see the bin folder anymore

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

sreejukg avatar image
0 Votes"
sreejukg answered

It might be due to the tracking feature of solution explorer. In Visual Studio tools menu, go to Options, then select General Tab under Projects & solutions, then check "Track Active Item in Solution Explorer" option. Restart visual studio and see whether it fixes the issue.

149127-image.png



image.png (79.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

YijingSun-MSFT avatar image
0 Votes"
YijingSun-MSFT answered

Hi @KulerMaster-6431 ,
According to your description, I tried the brother's answer above and it has some minor flaws. I think, you need to check "Track Active Item in Solution Explorer" and uncheck "Restore Solution Exporer project hierarchy state on solution load".
Press Tools--> Options-->Projects and Solutions-->General
149267-capture.png
Best regards,
Yijing Sun


If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


capture.png (32.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.