Friday, May 20, 2016

CA1050 Declare types in namespaces 'FilterConfig'

Running code analysis on my ASP.NET MVC application gives the following warning.

CA1050 Declare types in namespaces 'FilterConfig' should be declared inside a namespace. appname.xxx FilterConfig.cs 4

The FilterConfig.cs or RouteConfig.cs or Global.asax are created by the application without any namespaces.

I would say, just update your rule (if custom ruleset) to ignore this. Else right click and suppress the message.


No comments:

Post a Comment