开发者

How do I stop ReSharper from maintaining classes namespaces to correspond a folder?

If I place a class file into a folder, the folder's name is appended to the namespace, even if I set "Namespace Provider" property of the folder to False. If I then rename the namespace back, ReSharper underlines it 开发者_StackOverflow社区suggesting to change it according to the class file location. How do I suppress this behaviour? I use ReSharper 5 and Visual Studio 2010.


I'm not getting that behavior (also VS 2010, R# 5). With the Inspection Severity of "Namespace does not correspond to file location" in Options set to Show as warning, the Namespace Provider folder property toggles the warning on and off for me.

It's always appended the folder to the namespace (I think it's Visual Studio doing that). Anybody know a way to turn that off?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜