Do I need to maintain ReSharper's dotsettings.user file in Source Control?

Shiva picture Shiva · Mar 6, 2014 · Viewed 22.6k times · Source

I noticed ReSharper has created a dotsettings.user in my Source folder.

file.sln.dotSettings.user

  1. Do I need to keep this in my Source Control (TFS)?
  2. If I exclude it, what are the consequences?
  3. If I get latest on another machine, will my customized ReSharper settings be lost? Or does ReSharper re-create the settings from some other local file?

Answer

citizenmatt picture citizenmatt · Mar 6, 2014

No, the dotSettings.user file should be excluded from source control. It has user specific information in it, and shouldn't be shared, e.g. bookmarks, unit test session windows.

The .dotSettings contains project or solution specific settings that can be shared with the team, e.g. naming standards or braces layout. If you wish to share these amongst teams then the file should be included.