This documentation is archived and is not being maintained.


Visual Studio .NET 2003

Causes the compiler to create a dynamic-link library (DLL) rather than an executable (EXE) file.





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

  1. Open the project's Property Pages dialog box. For details, see <Projectname> Property Pages Dialog Box.
  2. Click the Common Properties folder.
  3. Click the General property page.
  4. Modify the Output type property.

To set /target:library programmatically


The following code compiles in.vb, creating in.dll:

vbc /target:library in.vb

See Also

/target | /target:exe | /target:module | /target:winexe | Visual Basic Compiler Options | /out | Sample Compilation Command Lines