Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I setup per-assembly resharper settings

Tags:

c#

resharper

I work in a codebase where for historic reasons not all projects have identical coding conventions. In fact, within a single .sln I have projects requiring different naming conventions.

Is there a way to have resharper use different settings based on which project the file I'm editing lives in?

like image 975
Lucas Meijer Avatar asked Oct 13 '10 12:10

Lucas Meijer


People also ask

Where does ReSharper save my preferences?

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.

How do I install ReSharper?

Install: 1 Download the ReSharper installer. 2 Run the ReSharper installer you have downloaded and follow the instructions in the installation wizard. 3 Review the ‘Available Products’ and select ‘Install' for the products you want to install. ... 4 You will see the following when the installation is complete.

How do I enable ReSharper in Visual Studio 2017?

In the Visual Studio menu, choose ReSharper | Options. In the Options dialog that appears, select a node in the left pane and configure settings in the right pane. Use the search box in the left top corner to find a specific preference.

How do I edit or modify ReSharper settings?

Use the search box in the left top corner to find a specific preference. Click Save in the Options dialog to apply the modifications and let ReSharper choose where to save them, or save the modifications to a specific settings layer using the Save To list. For more information, see Manage and share ReSharper settings.


2 Answers

Since ReSharper 6.1 you can finally have per project settings!
Basically, all you need to do is to create a file named <project file name>.DotSettings, e.g. MyUnitTest.csproj.DotSettings.

See this blog post for more info.

like image 85
Daniel Hilgarth Avatar answered Sep 30 '22 08:09

Daniel Hilgarth


Check out the Resharper Settings Manager tool

You'll need to first install the ReSharper Power Toys to use it.

like image 27
Rob H Avatar answered Sep 30 '22 07:09

Rob H