/target:library
-or-
/t:library
The DLL will be created with the .dll extension.
Unless otherwise specified with the /out option, the output file name takes the name of the first input file.
When specified at the command line, all files up to the next /out, /target:winexe/target:winexe, or /target:exe option are used to create the .dll.
When building a .dll, a Sub Main procedure is not required.
Compile in.vb
, creating in.dll
:
vbc /target:library in.vb
/target (Specify Output File Format) | Visual Basic Compiler Options