Adding .NET assemblies to the target

If you want to call methods in .NET assemblies in your .NET application, you need to import the assemblies into the target.

StepsTo import a private .NET assembly into a .NET target:

  1. Right-click the target in the System Tree, select Properties from the pop-up menu, and select the .NET Assemblies tab.

  2. Click the Browse button to open the Browse for a .NET Assembly dialog box.

  3. Browse to select a private assembly with the .dll, .tlb, .olb, .ocx, or .exe extension and click Open.

    To import multiple assemblies, you must select and import them one at a time.

StepsTo import a shared .NET assembly into a .NET target:

  1. Right-click the target in the System Tree, select Properties from the pop-up menu, and select the .NET Assemblies tab.

  2. Click the Add button to open the Import .NET Assembly dialog box.

  3. Select a shared assembly from the list and click OK.

    To import multiple assemblies, you must select and import them one at a time. You can also use the Import .NET Assembly dialog box to import recently used assemblies.

For more information about shared and private assemblies, see “Installing assemblies in the global assembly cache”.