Microsoft.VisualBasic Removal

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
 
S

Scott M.

I think you are referring to the Microsoft.VisualBasic.Compatibility
assembly not the Microsoft.VisualBasic assembly.
 
S

Scott M.

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.
 
C

Carlos J. Quintero [.NET MVP]

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
 
S

Scott M.

Correct. You can no more remove Microsoft.VisualBasic than you can remove
mscorelib.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top