我可以导出和导入 Visual Studio 2010 扩展吗? [英] Can I export and import Visual Studio 2010-extensions?

查看:24
本文介绍了我可以导出和导入 Visual Studio 2010 扩展吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在另一台计算机上设置 Visual Studio 2010,并希望它具有与旧安装相同的扩展.如果可能的话,最好只导入一个文件包或类似的包.可以通过这种方式管理设置,这非常有用,但我无法为扩展找到相同的功能.

I am setting up Visual Studio 2010 on another computer and would like it to have the same extensions as the old installation. If possible it would be nice to just import a package of files or similar. Settings can be managed this way which is very useful but I was not able to find the same functionality for extensions.

TIA

推荐答案

是的,这是可能的.你有两个选择.

Yes, it is possible. You have two options.

首先,您可以针对每个用户执行此操作(对于您通过扩展管理器或双击 VSIX 安装的扩展).为此,您:

First, you can do it on a per-user basis (for extensions that you've installed through the extension manager or by double-clicking on VSIXes). For this, you:

  1. %localappdata%\microsoft\VisualStudio\10.0\Extensions 复制到新机器上的同一目录.
  2. 在新机器上打开VS,进入扩展管理器,启用所有扩展.默认情况下,VS 会禁用仅出现在该目录中但未放置在该目录中的扩展.
  1. Copy %localappdata%\microsoft\VisualStudio\10.0\Extensions to the same directory on the new machine.
  2. Open VS on the new machine, go to the extension manager, and Enable all the extensions. By default, VS disables extensions that just appear in that directory but it didn't put there.

第二个选项是将扩展安装到 %ProgramFiles(x86)%\Microsoft Visual Studio 10.0\Common7\IDE\Extensions.好处是您不需要手动全部启用它们,但坏处是您将无法从 VS 中更新/删除它们.

The second option is to install the extensions to %ProgramFiles(x86)%\Microsoft Visual Studio 10.0\Common7\IDE\Extensions. The upside is that you don't need to Enable them all by hand, but the downside is that you won't be able to update/remove them from within VS.

这篇关于我可以导出和导入 Visual Studio 2010 扩展吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆