VB command line compiler vbc.exe AND type "Int32" is not defined

B

bob95226

Hi All,

I wrote a VB.NET control in Visual Studio 2003 IDE, I am trying to
re-compile it with command line compiler vbc.exe like this:
vbc /t:library /out:my_control.dll my_control.vb

However vbc doesn't work with error "type 'Int32' is not defined"

Your help would be greatly appreciated!

Thanks,

Bob
 
C

Cor Ligthert [MVP]

Bob,

You need for VBC to set all the librarys and references that are used. Those
are set in Visual Studio Net for VB already set in the project properties.

Cor
 
G

Guest

I'm having the same problem "cannot find" system.data.sqlclient...I did the
/imports switch ie. vbc /imports:system.data.sqlclient...and still get error
that vbc cant find Namespace or type sqlclient for the imports
system.data.sqlclient
 

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

Top