Microsoft.VisualBasic namespace

TechnoTone

Junior Contributor
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 don't 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. It's really up to you.

If you wanted to remove it by default from new projects, you have to edit the templates.
 
There's a couple of templates in the VB.NET\Vb7\VBProjects directory that you could try editing, if that doesn't work try searching google, I'm sure people have done this before. I'm sorry I don't have more time to go looking.
 
divil said:
I'm sorry I don't have more time to go looking.
That's OK - I'm grateful for the help you've 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 it's sub-folders actually). Once I removed these and tried again - EUREKA!!! No more Microsoft.VisualBasic in my new projects.
 
Back
Top