Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio not saving session state after closing

My computer recently froze while debugging a project (on Visual Studio 2017).

No data was lost (because everything is saved and compiled before debug anyway), but now every time I open the project the Visual Studio environment looks like it did on the day it froze. The most recent session state is never saved, so I have to manually find and reopen all the pages I was just working on.

No data is lost and my work is still progressing as normal. It's just mildly annoying having to do this every time.

I presume there's a file somewhere that needs deleting. Not sure which one to safely remove though.

Thanks.

like image 321
Stuart Aitken Avatar asked Oct 15 '25 20:10

Stuart Aitken


1 Answers

Found the answer here: visual studio not remembering open documents & startup project

Deleted .csproj.user file and everything in the .vs/[projectName]/v15 folder. It may be a hidden folder so be sure to tell your File Explorer to show hidden files.

like image 113
Stuart Aitken Avatar answered Oct 18 '25 11:10

Stuart Aitken



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!