简体   繁体   English

Visual Studio 2010设置文件位置

[英]Visual Studio 2010 settings file location

I've got a small problem concerning my settings and a virtual machine. 关于我的设置和虚拟机,我遇到了一个小问题。 Recently I setup a VM so that I can perform clean checkouts and builds of the code once every week or so. 最近我设置了一个VM,这样我就可以每周左右执行一次干净的检查和代码构建。 However, my documents folder lives on the company network (thanks IT department!) so my settings are shared between my real machine, and my virtual machine. 但是,我的文档文件夹位于公司网络上(感谢IT部门!),因此我的设置在我的真实机器和我的虚拟机之间共享。

Obviously this causes never ending conflicts and is super annoying. 显然,这会导致永无止境的冲突,并且非常烦人。 I feel like there should be some easy way to point the VM to a different location where it can store and use its settings internally. 我觉得应该有一些简单的方法将VM指向一个不同的位置,它可以在内部存储和使用它的设置。 Does anyone know how to do this? 有谁知道如何做到这一点?

I figured it out, the option is actually hiding in plain sight. 我想通了,这个选项实际上隐藏在明显的视野中。 Start by navigating to: 首先导航到:

Tools > Import and Export Settings 工具>导入和导出设置

Now when you select any of the options (import / export / reset) you have the option to specify the directory where you want settings to be stored. 现在,当您选择任何选项(导入/导出/重置)时,您可以选择指定要存储设置的目录。 I chose 'reset', made a copy of the current settings, and re-imported them when the reset operation was complete. 我选择了'reset',复制了当前设置,并在重置操作完成后重新导入它们。 It is probably just easier to change the directory and hit 'export' though. 可能只是更容易更改目录并点击“导出”。

I changed this value on both of the machines to something local (to them) and now I no longer have a conflict. 我将这两台机器上的这个值改为本地(对他们),现在我不再有冲突了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM