Export (0) Print
Expand All

Creating and Using Assemblies

An assembly is one or more .exe or .dll files that make up a Visual Studio .NET-based application. Assemblies are created automatically when you compile Visual Studio .NET source files.

To create an assembly

  • Compile your application by choosing Build from the Build menu, or by building it from the command line using the command line compiler. For details about building assemblies from the command line, see Building From the Command Line.

To add a reference to another assembly

  • Choose the Add Reference command from the Project menu, and select the assembly you want to use. For details, see Adding and Removing References.

To use objects in another assembly

  • Specify the fully qualified name for the object, or use an alias that has been defined for the object using an Imports statement. For details about fully qualified names, see Namespaces. For details about adding references and using the Imports statement, see References and the Imports Statement.

See Also

Assemblies (Visual Basic .NET) | Assemblies | Creating Assemblies | Namespaces | References and the Imports Statement | Adding and Removing References | Imports Statement | Viewing Assembly Contents | Language Changes in Visual Basic | Building From the Command Line

Show:
© 2014 Microsoft