Share this page

# Referencing and sharing DLLs

When recording a script, all appropriate dependency references are automatically added to the reference list. You can also manually add .NET DLLs from the .NET Framework as references for a .NET script.

In this topic:

## Referenced DLLs

You can manually add references to DLLs to your .NET scripts. For details, see Reference List dialog box [.NET protocol]

The referenced DLL is added by default to the script folder, for use at runtime. You can also copy DLL files directly into the script folder. However, these local copies of the DLL increase the script size, and can cause high memory use on the load generators.

An alternative is to use shared DLL libraries. For details, see Using shared DLL libraries.

Back to top

## Using shared DLL libraries

After recording a script, you can edit the list of shared DLLs in the runtime settings. When you add a shared DLL library, at runtime the load generator accesses the referenced files at the shared location. The DLL is not copied to the load generator, saving memory use.

To use shared DLL libraries:

1. Copy the files for the DLL to a shared location that can be accessed by the load generators.

2. Open the Runtime Settings for the script.

3. On the Shared DLLs page, click Add, and define the full path to the shared library folder. Do this for each referenced DLL that you do not want copied to the local script folder.

4. If the script folder contains a copy of the DLL that will be accessed in the shared library, delete the local copy in the script.

Back to top

See also:

- Reference List dialog box [.NET protocol]
- Add Reference dialog box [.NET protocol]

https://admhelp.microfocus.com VuGen,Professional Performance Engineering,Performance Engineering for Developers 8942
Tips to improve your search results... OpenText™ Virtual User Generator Help Center OpenText™ VuGen Help 25.1-25.3 All View Local Help Center View Online Help Center Version: