Unable To Package Library Using UiPath Pack Build Task

Why is not possible to package library using UiPath Pack build task?

Issue Description: Unable to package library using UiPath Build Task. When using the UiPath Pack build task from the UiPath 2.9.2 Jenkins plugin, an error is experienced during compile:

"Unexpected error has occurred during the library compilation process:

Could not load file or assembly 'System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)uipcli.exe Error: 0 : Unexpected error has occurred during the library compilation process".

Resolution:

  • Uninstall System.Memory from GAC_MSIL - This removes the dependency on the non-existent System.Numerics.Vectors 4.1.3.0. Applicable for this package.

  • Similarly, for the package affected, uninstall the required dependencies.