Causes the compiler to create a dynamic-link library (DLL) rather than an executable (EXE) file.
/target:library
-or-
/t:library
The dynamic-link library file is created with a .dll extension.
Unless otherwise specified with the /out option, the output file name takes the name of the first input file.
When building a DLL, a Sub Main procedure is not required.
/t:library is the short form of /target:library.
To set /target:library in the Visual Studio integrated development environment
To set /target:library programmatically
The following code compiles in.vb
, creating in.dll
:
vbc /target:library in.vb
/target | /target:exe | /target:module | /target:winexe |