Search code examples
c#visual-studiocrashcrash-reports

Why does my visual studio closes automatically without any errors


it is the latest version of visual studio pro 2019 and there is new folder on my desktop named .vs enter image description here

and the desktop folder contains a folder named v16 and it contains a file named .suo enter image description here

Can it be because of the "CloneSpy" that i installed before today before using visual studio? And what should i do?


Solution

  • You can delete the .vs folder without problem because it contains temporary files, user cache data and some others things like with a net browser. It is the same with .suo and .user files.

    You can try to uninstall and reinstall Visual Studio as well as use the Cleanup Tool :

    https://learn.microsoft.com/visualstudio/install/remove-visual-studio

    learn.microsoft.com/visualstudio/install/remove-visual-studio.

    You also should delete all registry keys like :

    HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio

    And drive folders like :

    c:\Program Files [& x86]\Microsoft Visual Studio [...]

    c:\ProgramData\Microsoft Visual Studio\

    c:\ProgramData\Microsoft\VisualStudio

    c:\Users\...\AppData\Local\Microsoft\VisualStudio

    c:\Users\...\AppData\Local\Microsoft\VisualStudio Services\

    c:\Users\...\AppData\Local\Microsoft\VSApplicationInsights\

    c:\Users\...\AppData\Local\Microsoft\VSCommon\

    c:\Users\...\AppData\Roaming\Microsoft\VisualStudio

    After that, you may want to run a registry cleaner like CCleaner or Yamicsoft Windows Manager.

    If it does not work... the last action is to reinstall Windos itself if you don't find anything to solve that. Before doing that you can try Visual Studio 2017.