Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what does visual studio devenv.exe /resetuserdata do exactly?

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.

like image 598
Mason Avatar asked Dec 14 '17 22:12

Mason


People also ask

What is the Devenv exe used for?

Devenv lets you set various options for the IDE, build projects, debug projects, and deploy projects from the command line. Use these switches to run the IDE from a script or a . bat file (such as a nightly build script), or to start the IDE in a particular configuration.

How do I get rid of Devenv exe?

Right click the lsiting and choose Details. Select the devenv.exe process on the details page and then click the End Task button.

How do I run Devenv exe?

Simply type devenv.exe from the command line. If you get a message like this, then you do not have devenv.exe in your path. >>> 'devenv.exe' is not recognized as an internal or external command, operable program or batch file. >>> To fix this simply run the batch file, vsvars32.

Where is Visual Studio Devenv?

devenv.exe. config resides in C:\Program Files (x86)\Microsoft Visual Studio X. 0\Common7\IDE by default (it is recommended to create a backup copy before modifying it).


1 Answers

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>
like image 167
Idanushka Avatar answered Sep 22 '22 07:09

Idanushka