I was just wondering, if i were to for example, remove the microsoct.visualbasic namespace from the Imported namespaces, will the compiled program be smaller?
All importing a namespace does is force you to qualify its members with the name of the namespace in code. That would mean that you'd have to use 'Microsoft.VisualBasic.MsgBox' instead of just 'MsgBox'. That has no effect whatsoever on the compiled code.
You can't remove the reference to the Microsoft.VisualBasic.dll assembly. The IDE won't let you because VB.NET can't work without it. Even if you could, it wouldn't make any difference to the size of your assembly.
Raven... no that's the Microsoft.Compatibility.VB namespace that does that.... or something to that effect it might be Microsoft.VB.Compatibility... but I'm positive it's got Compatibility in it.... but I've been known to be wrong before.
Tg is spot on here. You can't remove the reference to Microsoft.VisualBasic.dll because VB.Net won't compile without it. Thing is not all VB.Net code can produce MSIL so it needs the runtime helpers that are stored in the aforementioned .dll. It's a shame i know, but thats the way it is.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.