Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

TT

(*_*)

 

There are 10 types of people in this world;

those that understand binary and those that don't.

  • *Gurus*
Posted

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.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

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

TT

(*_*)

 

There are 10 types of people in this world;

those that understand binary and those that don't.

  • *Gurus*
Posted
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.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

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

TT

(*_*)

 

There are 10 types of people in this world;

those that understand binary and those that don't.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...