Lucas Meijer
Lucas Meijer

Reputation: 4484

How do I setup per-assembly resharper settings

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?

Upvotes: 7

Views: 1256

Answers (4)

Intrepidis
Intrepidis

Reputation: 2980

Additionally (to the other answers) when using SVN the "*.sln.DotSettings" files are changed every time a different machine opens the solution. To combat this set the read-only attribute on the DotSettings files, after checking out from the repository.

Upvotes: 0

Daniel Hilgarth
Daniel Hilgarth

Reputation: 174457

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.

Upvotes: 8

Alexis
Alexis

Reputation: 1375

Resharper now supports applying different settings to different Solutions from Resharper 6.1. See this blog post for further details http://blogs.jetbrains.com/dotnet/2011/11/resharper-settings-in-61/

However, from the looks of it, you cannot yet apply different settings to different projects within a solution. This is a feature I would very much welcome too!

Upvotes: 0

Rob H
Rob H

Reputation: 1849

Check out the Resharper Settings Manager tool

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

Upvotes: 4

Related Questions