Microsoft.VisualBasic Removal

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

Should I or shouldn't I remove the reference the microsoft.visualbasic
reference (project properties/Imports/Microsoft.Visualbasic)? Yes I know,
the reference is still there and visible in IL code, but then at least my IDE
warns me when I use old synthax...

After two hours of reading throught flame wars, I finally found:
http://addressof.com/blog/articles/CodingGuidelines.aspx
It basically says: "use it when you need it but remove the
microsoft.visualbasic as an exercise in learning new synthax rather than as a
strict rule".

All well and good, but where is the VB6-VB.NET no-Microsoft.VisualBasic
correspondance list? I found:
http://www.netcoole.com/VB6TOCS/vbhtml/vbfuncs.htm
for methods and
http://www.netcoole.com/VB6TOCS/vbhtml/vbconsts.htm
for constants, but there are a lot of correspondance that maps to
Microsoft.VisualBasic namespaces, which I am trying to avoid. Certain
correspondance seem just plain wrong (as per my information, vbCrLf should
map to System.Environment.NewLine, not to
Microsoft.VisualBasic.Constants.vbCrLf).

So, is there a good conversion list out there that I missed (one that takes
into account my willingness to avoid Microsoft.VisualBasic namespace)? I had
to find the hard way that the Collection object from MS.VB translates to a
SortedList in System.Collection. I would really want to know how to convert
vbTab, among others...

Thanks alot,

-Confused
 
I think you are referring to the Microsoft.VisualBasic.Compatibility
assembly not the Microsoft.VisualBasic assembly.
 
I also think that the advice you found in the first link listed below is
more a matter of opinion than the best possible advice one could get. I
personally disagree with about 1/3 of the things that this site advises a
developer to do.
 
I think so too, because AFAIK Microsoft.VisualBasic assembly can not be
removed from VB.NET projects (in fact it doesn´t even appear in the project
references).

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
 
Back
Top