How to share the same Resharper settings between multiple solutions, with no manual intervention?

前端 未结 3 1530
野的像风
野的像风 2021-01-31 13:26

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

相关标签:
3条回答
  • 2021-01-31 13:47

    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.

    0 讨论(0)
  • 2021-01-31 13:59

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

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

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

    0 讨论(0)
  • 2021-01-31 13:59

    In Resharper 2015

    Go to Resharper -> Options -> Manage(pic 1) -> Options -> Import and Export(pic 2) -> from file....

    And if you what to import it for your team you can to Solution settings then instead of Import and Export in Options go to Copy Settings to -> team-shared.

    Hope this saves you some time.

    0 讨论(0)
提交回复
热议问题