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

前端 未结 3 1535
野的像风
野的像风 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.

提交回复
热议问题