Microsoft.VisualBasic namespace

TechnoTone

Well-known member
Joined
Jan 20, 2003
Messages
224
Location
UK - London
I was reading this thread and was wondering whether it was a good idea to remove the "Microsoft.VisualBasic" namespace from my projects imports list.

Is this a good idea? Is there a way to remove it by default for new projects?
 
I dont remove it personally, although it can be a good way of forcing you to use .NET methods rather than the ones the Visual Basic runtime provides. Its really up to you.

If you wanted to remove it by default from new projects, you have to edit the templates.
 
Originally posted by divil
If you wanted to remove it by default from new projects, you have to edit the templates.

OK - Ive had a look but I cant find them. Could you provide a bit more info please.
 
Theres a couple of templates in the VB.NET\Vb7\VBProjects directory that you could try editing, if that doesnt work try searching google, Im sure people have done this before. Im sorry I dont have more time to go looking.
 
Originally posted by divil
Im sorry I dont have more time to go looking.
Thats OK - Im grateful for the help youve provided already.

I looked in the VB.NET\VB7\VBProjects folder and found 2 vbproj files which each had imports for Microsoft.VisualBasic. I removed these imports but to no avail - new projects still had the unwanted import.

I then searched all files in the VB7 folder (and sub-folders) for the string "Microsoft.VisualBasic" and found a few imports in the VBWizards folder (well, in its sub-folders actually). Once I removed these and tried again - EUREKA!!! No more Microsoft.VisualBasic in my new projects.
 
Back
Top