Copying visual studio 2010 installed extensions options to another computer

我的梦境 提交于 2020-01-01 08:05:26

问题


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);


来源:https://stackoverflow.com/questions/4936346/copying-visual-studio-2010-installed-extensions-options-to-another-computer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!