如何共享多个解决方案之间的相同的ReSharper的设置,而无需人工干预? [英] How to share the same Resharper settings between multiple solutions, with no manual intervention?

查看:696
本文介绍了如何共享多个解决方案之间的相同的ReSharper的设置,而无需人工干预?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的项目的组织在一个主解决方案(包含每一个项目),并包含相关项目分组多个更小的解决方案。

我想跨越每一个解决方案共享同一个ReSharper的设置,确保开发商不以往任何时候都需要进口的ReSharper的配置文件或为此事手工做任何事情。我们使用的版本是最新的,7.0.1。在TFS签入的DotSettings文件的伟大工程,在一个单一的解决方案,但复制同一个文件20-30的解决方案是一个禁忌。

有没有办法与大家分享在整个团队每一个项目/解决方案相同的配置,而不​​需要开发人员显式的配置呢?理想的情况下,它应该是可以改变的路径.DotSettings文件为每个溶液使得当单个.DotSettings文件被编辑它自动影响球队每溶液

更新:

我寻觅了一些关于这一点,并尝试了2种不同的方法,但他们没有工作,100%:

我离开这里的选项。

更新2:

提出丹尼尔Hilgarth解决方案完美地工作,但前提是ReSharper的更新。导致.DotSettings文件进行自动的bug签出和编辑每台机器上的7.1版本已得到纠正。之前和更新软件后我已经测试过这一点,现在可以作为我的预期。

有关错误的详细信息可以在这里找到:

<一个href="http://youtrack.jetbrains.com/issue/RSRP-288235">http://youtrack.jetbrains.com/issue/RSRP-288235

解决方案

ReSharper的支持选项的层次感。

您会使用这样的:

  1. 拥有一座DotSettings在它所有的设置文件。
  2. 对于每一个解决方案执行以下步骤:
    1. 在ReSharper的 - >管理选项
    2. 右键单击解决方案您的解决方案的团队共享
    3. 选择添加图层 - >打开设置文件
    4. 选择中央DotSettings文件

这将创建一个DotSettings文件为每个解决方案。您需要检查这些到TFS随着中央DotSettings文件。
重要提示:该解决方案的DotSettings文件只包含一个链接到中央一台,不复制设置

Our projects are organized in a master solution (containing every project) and multiple smaller solutions containing groupings of related projects.

I would like to share the same Resharper settings across every solution, making sure that the developers don't ever need to import configuration files in Resharper or do anything manually for that matter. The version we are using is one of the latest ones, 7.0.1. The DotSettings file checked in in TFS works great on a single solution, but replicating the same file for 20-30 solutions is a no-no.

Is there a way to share the same configuration with every project/solution in the whole team, without the need for the developers to configure this explicitly? Ideally, it should be possible to change the path to the .DotSettings file for each solution so that when a single .DotSettings file is edited it automatically affects every solution in the team.

Update:

I have searched a bit about this and tried 2 different methods, but none of them work 100%:

  • Hardlinks using the mklink tool work perfectly locally, but TFS does not support them
  • Normal shortcuts would also be a reasonable solution to this, but Resharper doesn't read them

I'm out of options here.

Update 2:

The solution proposed by Daniel Hilgarth works perfectly, but only if Resharper is updated. A bug that caused the .DotSettings files to be auto checked out and edited on every machine was corrected on the 7.1 release. I have tested this before and after updating the software and it now works as I expected.

More information about the bug can be found here:

http://youtrack.jetbrains.com/issue/RSRP-288235

解决方案

Resharper supports option layering.

You would use it like this:

  1. Have one DotSettings file with all your settings in it.
  2. For each solution perform these steps:

    1. ReSharper -> Manage Options
    2. Right-click "Solution 'Your Solution' team-shared"
    3. Select Add Layer -> Open Settings File
    4. Choose the central DotSettings file

This would create a DotSettings file for each solution. You need to check these into TFS along with the central DotSettings file.
Important: The DotSettings file of the solutions only contain a link to the central one, they don't replicate the settings.

这篇关于如何共享多个解决方案之间的相同的ReSharper的设置,而无需人工干预?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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