"do not enter namespace" from Resharper I created a class inside a subfolder of my project and the namespace did no...">

Undo "Folder" <folder_name> "do not enter namespace" from Resharper

I created a class inside a subfolder of my project and the namespace did not match the folder structure. Resharper highlighted the namespace and, looking at the options Resharper presented to fix the problem, accidentally chose the "Folder does not create namespace" option. Where is this parameter stored? I want to deselect this so that Resharper enforces space / directory id parity, at least for this folder.

I checked the .sln file and then the .csproj and also the corresponding directory for any unpinned files that might contain this information and cannot find how Resharper stores this to remove it.

enter image description here

+3


source share


2 answers


Thanks to DavidG for the technical answer, but I just stumbled upon what can be considered the "correct" way to change the setting, at least more user-friendly than manually editing the raw XAML file.

If you select a folder in Solution Explorer and check the Properties window, there is a Namespace Provider property under the ReSharper category. Setting it to true

will restore ReSharper's default behavior of expecting namspace to match the directory structure.



Properties window

+7


source


You should have a file next to your project file projectname.csproj.Dotsettings

. You will find the settings there. If this is the only specific project, just delete the file.



+1


source







All Articles