command line compile doesn't see import namespaces

J

JimO

I just upgraded (reinstalled) my system to XP Pro. I set my path to the
directory where the vbc.exe is located in the environment variables. The
system sees vbc.exe but it doesn't see any imported namespaces or references
within the code. I'm getting a lot of not found and not defined errors.
What do I need to do to redirect the compiler to see the imported
namespaces?

Thanks,
Jim
 
D

David Hogue

JimO said:
I just upgraded (reinstalled) my system to XP Pro. I set my path to the
directory where the vbc.exe is located in the environment variables. The
system sees vbc.exe but it doesn't see any imported namespaces or references
within the code. I'm getting a lot of not found and not defined errors.
What do I need to do to redirect the compiler to see the imported
namespaces?

Hi Jim,

As far as I know, the command line compiler (vbc.exe) doesn't
automatically import or reference anything. You need to use the
/reference and /import switches.

Were you maybe using a batch file that would add some basic options to
vbc? Or, are you using a build tool such as NAnt or MSBuild?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top