Skip to Content

Dependency Management

Primo RPA robots can use third-party libraries in their projects. After connecting the libraries, they can be used in code snippets.

Additional elements can also be added to projects in the same way. There are the following ways to import dependencies:

  1. Copying all necessary *.dll files to the Studio and robot folder (for regular libraries).
  2. Copying all necessary *.dll files to the root folder of the robot and Studio (for elements).
  3. Manually adding dependencies.
  4. Using the dependency manager.

Loading dependencies into a project takes some time. Therefore, connected libraries will appear in the script editor only after the “Loading dependencies…” indicator disappears from the Studio status bar.

alt

Dependency Manager

Dependencies for Primo RPA projects can be distributed as NuGet packages (*.nupkg) either by direct copying or through the nuget.org portal.

To launch the Dependency Manager, use the Manage Dependencies button in the main menu

alt

or right-click on the ”.Dependencies” item in the project panel and select Manage dependencies.

A window will open as follows:

alt

Dependencies are divided into four main groups:

  • Project — this group contains dependencies attached to the project itself. Physically, they are located in the .Dependencies folder of the project. Dependencies can be installed from the local Studio repository or from the nuget.org portal.
  • Studio — this group contains dependencies from the local Studio repository. New dependencies can be added in the following ways:
    • By going to the Nuget.org group — when installing from the nuget.org portal, the dependency will be automatically imported into the current project. To import only into Studio, you must first close the current project.
    • Manually — by copying to the .Dependencies root directory of Studio. In the .Dependencies folder, you should create a subfolder with the name of your nuget package (without extension), and then copy the nuget package file (*.nupkg) into it. For example, for the Antlr.3.5.0.2.nupkg package, you should create the Antlr.3.5.0.2 folder.
  • Nuget.org — this group contains packages from the nuget.org portal. An internet connection is required to work with them.
  • Third-party sources — see Nuget section for information on how to add additional sources.
ℹ️

Look for official libraries from the Primo RPA team on nuget.org using the keywords Primo or Rondem.

Importing Dependencies

Dependencies are imported according to the following algorithm:

  1. A search is performed in the Studio repository.
  2. If the dependency is found, it will be installed from the Studio repository.
  3. If not found, it will be installed from nuget.org and then copied to the local Studio repository.

Importing/deleting/updating dependencies is batch-performed, i.e. when the control buttons (Add/Delete/Update) are pressed, corresponding labels are set:

alt

Installation is then performed once the Save button is clicked.

After clicking the Save button, a window with a list of proposed changes is displayed:

alt

Clicking the Install button will perform all listed changes, and dependency installer log will be displayed at the bottom of the window.

After the changes are completed, the project will be reloaded.

⚠️

Save all changes in the algorithms before starting work with dependencies.

Restoring Dependencies

If the necessary dependencies are missing from the .Dependencies folder of the project, errors will be displayed in the Project panel (Primo.Messaging.1.2.3 in the example below).

alt

You can restore dependencies as follows:

  • manually — by copying;
  • automatically — to do this, you need to right-click on any dependency and select Restore dependencies.
Last updated on