Home All Groups Group Topic Archive Search About

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

Author
6 Apr 2006 1:22 AM
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

Author
6 Apr 2006 2:15 AM
Rocky
Try  vbc /imports:System /t:library /out:my_control.dll my_control.vb


<bob95***@yahoo.com> wrote in message
Show quoteHide quote
news:1144286544.367172.6410@g10g2000cwb.googlegroups.com...
> 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
>
Author
6 Apr 2006 6:33 AM
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

<bob95***@yahoo.com> schreef in bericht
Show quoteHide quote
news:1144286544.367172.6410@g10g2000cwb.googlegroups.com...
> 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
>
Author
31 May 2006 9:08 PM
mzp
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

Show quoteHide quote
"Cor Ligthert [MVP]" wrote:

> 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
>
> <bob95***@yahoo.com> schreef in bericht
> news:1144286544.367172.6410@g10g2000cwb.googlegroups.com...
> > 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
> >
>
>
>
Author
1 Jun 2006 6:23 AM
Cor Ligthert [MVP]
mzp,

The imports makes it possible that you write
dim con as new oledbconnection
instead of
dim con as new system.data.oldedb.oledbconnection

To use that you have to set a reference to that system.data

http://msdn2.microsoft.com/en-us/library/c03639ab.aspx

I hope this helps,

Cor

Show quoteHide quote
"mzp" <m**@discussions.microsoft.com> schreef in bericht
news:88B511E7-74EB-43A1-A570-01A21D2D937F@microsoft.com...
> 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
>
> "Cor Ligthert [MVP]" wrote:
>
>> 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
>>
>> <bob95***@yahoo.com> schreef in bericht
>> news:1144286544.367172.6410@g10g2000cwb.googlegroups.com...
>> > 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
>> >
>>
>>
>>