Excluding certain folders from Folder -> Namespace warning.

I think that the "Namespace does not correspond to file location" warning and automatic fix is a really useful feature, however our folder structure looks something like

Project
-Source
-Configurations
-Documentation
-QA

etc. With all the source files being in the source directory, and other stuff being kept in the other directories. The problem is that the "Namespace does not correspond to file location" warning always wants to add "Source" to the namespace. Is there anyway to change what is considered the namespace "Root" or to define certain words to exclude.

Thanks.

0
5 comments
Avatar
Permanently deleted user

Hello Travis,

On the folder you want to exclude, open properties (from context menu or
hitting alt-enter) and select False in Namespace Provider setting.


Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


T> I think that the "Namespace does not correspond to file location"
T> warning and automatic fix is a really useful feature, however our
T> folder structure looks something like
T>
T> Project
T> -Source
T> -Configurations
T> -Documentation
T> -QA
T> etc. With all the source files being in the source directory, and
T> other stuff being kept in the other directories. The problem is that
T> the "Namespace does not correspond to file location" warning always
T> wants to add "Source" to the namespace. Is there anyway to change
T> what is considered the namespace "Root" or to define certain words to
T> exclude.
T>
T> Thanks.
T>


0
Avatar
Permanently deleted user

Perfect, thank you.

0
Avatar
Permanently deleted user

This is a nice feature. Is it possible to save the information about the folders that are not namespace providers in the project file (*.csproj)? So everyone involved in the project would get automatically the settings from source control.

Regards,
Uwe

0
Avatar
Permanently deleted user

Hello Uwe,

Those are saved into ProjectName.csproj.resharper file, which should be included
into source control. Any *.user files should be left per-user and not put
into code repository.

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


IR> This is a nice feature. Is it possible to save the information about
IR> the folders that are not namespace providers in the project file
IR> (*.csproj)? So everyone involved in the project would get
IR> automatically the settings from source control.
IR>
IR> Regards,
IR> Uwe


0
Avatar
Permanently deleted user

Hello Ilya,

thanks for the quick answer. I did not notice that settings file until now, the effect is as desired!

Thanks,
Uwe

0

Please sign in to leave a comment.