VB.NET Compile Error - Namespace cannot be found


This is probably a simple question because i am a newbie at this.  I have created a vb class in the visual studio 2002 environment.  I can compile and test the class just fine through the IDE but when i try to compile the code using vbc.exe it generates an error.

I run:

"F:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\vbc" /nologo /t:library "F:\My Programs\Mp3 Cataloger\mp3Info.vb"

And then i get:

F:\My Programs\Mp3 Cataloger\mp3Info.vb(4) : error BC30466: Namespace or type 'RegularExpressions' for the Imports 'System.Text.RegularExpressions' cannot be found.

Imports System.Text.RegularExpressions

The weird thing is my other imports work just fine (listing of imports following):

Imports System.IO
Imports System
Imports Microsoft.VisualBasic
Imports System.Text.RegularExpressions

When i dont include the regular expressions (and i comment out the instances of regex i create in the code) it compiles just fine.

Can anyone tell me how to make this compile?
LVL 15
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Do you have a path to your C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 or v1.4.3 etc etc etc...or 1.03 etc etc

dave4dlAuthor Commented:
my user "path" environmental variable is:

F:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;F:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;F:\Program Files\Microsoft Visual Studio\Common\Tools;F:\Program Files\Microsoft Visual Studio\VC98\bin;F:\WINDOWS\Microsoft.NET\Framework\v1.0.3705

system "path" variable =

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;F:\Program Files\Microsoft SQL Server\80\Tools\BINN;F:\WINDOWS\Microsoft.NET\Framework\v1.0.3705
Try this

vbc class1.vb /reference:System.dll /target:library

RegularExpressions is part of the system.dll namespace and not the vb name space, I'm assuming because you are compiling with vbc the compiler adds the vb dll automatically and so you don't have to add it as a reference as well.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dave4dlAuthor Commented:
Thanks for the post Wabbit,
I did try that reference and it didnt seem to help.

I found an interesting page at http://www.windowsdevcenter.com/pub/a/oreilly/windows/news/csharp_0101.html

that says i should reference System.Text.RegularExpressions.dll but i cannot find that file anywhere on my system.  I updated the .NET framework 1 and i still cannot find it.  How do i get this file?  Are regular expressions not available unless you buy the Visual Studio IDE?
dave4dlAuthor Commented:
Well tried referencing System.dll in my compile command and it worked.  I could have sworn i tried that earlier and it didnt work. Maybe I updated .NET framework . . .

Oh well, thanks for the help LordWabbit
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.