'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
and the desktop folder contains a folder named v16 and it contains a file named .suo
Can it be because of the "CloneSpy" that i installed before today before using visual studio? And what should i do?
Solution 1:[1]
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://docs.microsoft.com/visualstudio/install/remove-visual-studio
docs.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.
Solution 2:[2]
It maybe caused by installing .net framework 4.7 and below after visual studio installation if so, check the following solution:
edit machine.config for .net framework v4 (usually on this path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config and this one : C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config )
make sure the following config is set to false :
<NetFx40_LegacySecurityPolicy enabled="false" />
It works for me
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | |
Solution 2 | Suraj Rao |