views:

310

answers:

2

Sub directories within VS2008 projects are mainly used to physically represent on disk the namespace structure for the project. Each folder has a Boolean property called “Namespace Provider”, which when set to True causes ReSharper to validate that the physical location of a given class corresponds to the logical namespace location.

Occasionally I don’t want a folder to be used as a Namespace Provider, so I set this property to False, and ReSharper doesn’t perform the check.

Problem

This setting doesn’t get saved in the project file, and therefore reverts to the default value of True next time I open the solution. It’s not that big a deal but ReSharper does give you lots of warnings about incorrect namespaces.

Why doesn’t the property value get saved?

Versions...

ReSharper 4.0 with VS2008 SP1

A: 

Try ReSharper 4.5 which is to be released soon. You can get early builds at http://tinyurl.com/nightly45

Ilya Ryzhenkov
+1  A: 

For me this setting is saved in a .csproj.resharper file. We have had problems because some developers add an ignore pattern on this file, and don't check it in.

Robert Patterson
That si definitely the answer, and we do try and avoid checking this file in because I assumed it was user specific (settings, prederences, etc). But if it does contain global settings such as this then we should rethink how we treat these files.
Andy McCluggage
Wow. Answered after a year, and the OP accepted it! FTW!
fre0n