|
-
Jul 14th, 2008, 01:31 PM
#1
[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.
-
Jul 14th, 2008, 01:46 PM
#2
Fanatic Member
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
CLanguage; 
IF Post = HelpFull Then
RateMe
Else
Say("Shut UP")
End If
DotNet rocks
VB 6, VB.Net 2003, 2005, 2008, 2010, SQL 2005, WM 5.0,ahem ?OpenRoad?
-
Jul 14th, 2008, 01:48 PM
#3
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.
-
Jul 14th, 2008, 04:03 PM
#4
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|