Copying visual studio 2010 installed extensions op

2019-04-04 07:08发布

问题:

I have visual studio 2010 installed and configured with some extensions at my home computer. Now i want to copy all installed extensions settings from my home computer to work computer, how can i do that?

I can copy visual studio settings via import/export dialog but this not work for extensions settings.

回答1:

Visual studio extension settings are stored in the registry:

HKCU\Software\Microsoft\VisualStudio\<version>\DialogPage\<extension>

if they implement the default extension settings mechanism.

Otherwise you'll have to go to the individual extension website to see where they store their settings.



回答2:

I would look in this directory

%USERPROFILE%\AppData\Local\Microsoft\VisualStudio\10.0\Extensions

That is where the extensions are stored, copy that to your new PC.

I'm not sure if this will work 100% but you can give it a shot.



回答3:

It is under one of the directories in AppData\Local\Microsoft_Corporation. Each extension has a user.config file stored.



回答4:

For VS 2013 you can find them by this (not sure if this also works for VS 2010 but maybe it helps someone):

 var config1 = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.PerUserRoamingAndLocal);
 MessageBox.Show("Config path: " + config1.FilePath);