问题
I have been having an issue recently with Visual Studio 2015 and the only workaround I can find is opening up the developer command line and executing "devenv.exe /resetuserdata"
That solves the problem (until the next windows update typically brings it back).
I have been trying to troubleshoot this for a while so I can actually determine the root cause but one big issue is that I cannot find any msdn documentation about this command "devenv.exe /resetuserdata"
So that is essentially my question, what does this do? I am trying to figure out what is actually getting reset. Is it registry data? Is there some settings/config files somewhere I am not finding?
Edit: Just to clarify, I understand, in general, what the command will do, however, I am wondering more specifically what it does, I.E. deleting files, registry entries etc.
回答1:
It will clear all the user data that you have, like settings from the options menu, and you might need to re-enter your user details / license afterwards.
You can export the settings before you run the command.
The contents of the following directories (and possibly other information) will be deleted:
%APPDATA%\Microsoft\VisualStudio\<version>
%LOCALAPPDATA%\Microsoft\VisualStudio\<version>
来源:https://stackoverflow.com/questions/47823385/what-does-visual-studio-devenv-exe-resetuserdata-do-exactly