How to use the same Resharper settings between several solutions without manual intervention?

Our projects are organized in the main solution (containing each project) and several small solutions containing groups of related projects.

I would like to share the same Resharper settings in each solution, making sure that developers never need to import configuration files into Resharper or do something manually in this regard. The version we are using is one of the latest, 7.0.1. The DotSettings file installed in TFS works fine on one solution, but replicating the same file for 20-30 solutions is no-no.

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

Update:

I asked a little about it and tried 2 different methods, but none of them work 100%:

  • Hardlinks with the mklink tool work fine in place, but TFS does not support them
  • Regular shortcuts will also be a reasonable solution for this, but Resharper does not read them.

I have no options here.

Update 2:

The solution proposed by Daniel Hilgarth works fine, but only if Resharper is updated. Fixed a bug due to which .DotSettings files were automatically extracted and edited on each machine, was fixed in version 7.1. I tested this before and after the software update, and now it works as I expected.

More error information can be found here:

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

+61
tfs visual-studio resharper solution
Feb 15 '13 at 13:43
source share
4 answers

Resharper supports separation of options.

You would use it as follows:

  • You have one DotSettings file with all your settings.
  • For each solution, follow these steps:
    • ReSharper โ†’ Management Options
    • Right-click the Solution. Team Collaboration Solution
    • Choose "Add Layer" โ†’ "Open Settings File"
    • Select a central DotSettings file

This will create a DotSettings file for each solution. You need to check them in TFS along with the central DotSettings file.
Important: the DotSettings file for solutions contains only a link to the central one; they do not replicate the settings.

+58
Feb 15 '13 at 14:25
source share

The question is old, but if someone is still looking for a way to share the command settings:

All settings for R # can be exported and packaged as a NuGet package and distributed as a regular ReSharper extension.

This gives you flexibility: you can use different settings for different teams, ReSharper will take care of detecting a new version and notifying the developer. Well, basically all the benefits you can get when using NuGet.

+12
Jul 05 '15 at 9:35
source share

If you want to have a company-wide settings file, check this box.

I have not tested it myself yet, but if it works, you donโ€™t even need to add a link to each solution.

+2
Jun 04 '13 at 11:26
source share

In Resharper 2015

Go to Resharper โ†’ Options โ†’ Manage (pic 1) โ†’ Options โ†’ Import and Export (pic 2) โ†’ from file....

enter image description here

enter image description here

And if you need to import it for your team, you can Solution settings , and instead of Import and Export in Options go to Copy Settings to โ†’ team-shared .

enter image description here

Hope this saves you some time.

+1
Sep 15 '16 at 13:58
source share



All Articles