Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?
like image 516
Shiva Avatar asked Mar 06 '14 19:03

Shiva


People also ask

What is folder DotSettings user?

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. Follow this answer to receive notifications.

Where are ReSharper settings stored?

If you change any settings, your change is saved in a settings layer and ReSharper applies it overriding the corresponding default setting. Initially, ReSharper suggests three layers, in which you can save your preferences: This computer, Solution team-shared, and Solution personal.


2 Answers

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.

like image 52
citizenmatt Avatar answered Sep 18 '22 14:09

citizenmatt


No, you shouldn't do so, as ReSharper Help says.

The corresponding settings file .sln.DotSettings is saved in the solution folder.

As soon as this file is added to your VCS and the team members get it, they will have settings from this file applied automatically without reloading the solution.1

The corresponding settings file .sln.DotSettings.user is saved in the solution folder. You should not add it to your VCS.2

The article explains ReSharper setting layers in details, which answers your questions as well.

like image 28
Kexy Biscuit Avatar answered Sep 19 '22 14:09

Kexy Biscuit