How to share ReSharper settings across a team using Solution Team-Shared Layers?

Asked -51 seconds ago Updated 5 hours ago 19 views

0

When working on multi-developer .NET projects, enforcing consistent code formatting and inspection severity settings is critical. ReSharper supports layered settings that allow developers to share project configuration files directly through source control.

Understanding ReSharper Settings Layers

ReSharper uses a hierarchical settings system:

  • This Computer: Personal global settings applied to all solutions on your machine.
  • Solution Personal: Settings specific to you for a particular solution (not committed to Git).
  • Solution Team-Shared: Shared settings stored in a .DotSettings file meant to be committed to version control.

How to Configure Team-Shared Settings

  1. Open ReSharper > Options.
  2. Notice the Save To button at the bottom of the Options dialog.
  3. Select Solution [Name] team-shared when modifying inspection rules or formatting settings.
  4. Commit the newly created file named YourSolution.sln.DotSettings to your Git repository.

Example Settings Layer File structure (.DotSettings)


    True

Benefits

By committing team-shared settings, every developer opening the solution immediately inherits the team's formatting standards without manual setup.

0 Answers


Write Your Answer