[RESOLVED] Microsoft.VisualBasic Namespace
I have a few developers that come from a VB6 background and occasionally they still use some of the functions available in the Microsoft.VisualBasic namespace. I am wondering if there is some way to either disable the usage of functions from this namespace or to put up a comiler warning whenever a function is used from this namespace.
I really want the developers to use the common .Net methods, so that our C# developers can easily read their code without having to look up what some of the Microsoft.VisualBasic functions do.
Re: Microsoft.VisualBasic Namespace
I believe you can remove the namespace altogether but you may end up with broken apps.
http://msdn.microsoft.com/en-us/library/3w4tctcf.aspx
Re: Microsoft.VisualBasic Namespace
I believe that you can use FxCop as part of the build process and add custom rules that will generate the warnings you need.
Re: Microsoft.VisualBasic Namespace
Thanks, FxCop looks like the way to go. I saw a few articles on writing custom rules and it doesn't look too dificult.