TechnoTone Posted January 22, 2003 Posted January 22, 2003 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? Quote TT (*_*) There are 10 types of people in this world; those that understand binary and those that don't.
*Gurus* divil Posted January 22, 2003 *Gurus* Posted January 22, 2003 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. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
TechnoTone Posted January 22, 2003 Author Posted January 22, 2003 If you wanted to remove it by default from new projects, you have to edit the templates. OK - I've had a look but I can't find them. Could you provide a bit more info please. Quote TT (*_*) There are 10 types of people in this world; those that understand binary and those that don't.
*Gurus* divil Posted January 22, 2003 *Gurus* Posted January 22, 2003 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. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
TechnoTone Posted January 22, 2003 Author Posted January 22, 2003 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. Quote TT (*_*) There are 10 types of people in this world; those that understand binary and those that don't.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.