How to use a nupkg file in my Studio project ?

Hi UiPath community member ! :star_struck:

When we are stuck during a development, we migh need some custom packages. For this case, we often go to https://marketplace.uipath.com/ and write some keywords to find a custom package that might save/help us :grin:
Once we find the package, we can find several formats, often nupkg or xaml.
XAML is the format that we use daily with our UiPath projects (if you did not already notice, check the format of your Main file !)

Today we’ll go through an example of a nupkg, to understand together how to add it to its UiPath project :wink:

:point_right: Let’s say that we have a pdf, that has inside some attached files (like an excel file). And we want to extract the attachments of our pdf file. On marketplace, we have an interesting custom package, that is in nupgk format: Feat Systems - PDF to Excel - RPA Component | UiPath Marketplace

To be able to see the download button, we have to log in.

(Here is attached the package if you did not log in ExtractPdfAttachmentsActivities.1.0.2.nupkg (4.9 KB)

:point_right: To be able to use this nuget package, here is the way:

  1. Go to UiPath Studio and click on Manage packages, then parameters, then find where Studio gets its local path:
  2. Open a Windows explorer, and copy paste this local path, you’ll find a place where all nupkg are stocked:

    Then you just have to add the nupkg here (you might need administrator rights to add the nupkg file)
  1. Then you can come back to your Studio project, and in Manage packages, in All Packages if you write the name of the nupkg you’ll find it. Then you can click on install, save.

  2. Then check if your Output panel gives any error (red messages are error messages, orange messages are warnings, grey messages are log messages).
    In my case for instance, I discover that the package ExtractPdfAttachments.nupkg depends on another package:


    The name of the missing package is Syncfusion.Pdf.WinForms.

  3. To find this package, you need to go to this page: https://www.nuget.org/
    And write the package we are missing (Syncfusion.Pdf.WinForms), in the error message no specific version was specified, so I can take the highest version of the package:

  4. Click on download, and don’t forget to check if this package has also other dependencies. If yes (like in this case), add also these 2 nupkg to your Studio local path as earlier (and these 2 packages might need other dependencies etc)


    Everytime you add a nupkg, in your Studio local path, don’t forget to click on manage packages, install the package, and check the output to see if there are any errors or other dependencies that you need to add.

:point_right: Once you have added all the needed packages, you can on activities panel have the access to the activity and use it ! Et voilà :wink:

image

Let us know if you need more details :grinning_face_with_smiling_eyes:

6 Likes

Hi Guys
Why can’t I find the activity in studio I copied to local package folder? thanks

Hi @472885438 !
Welcome to UiPath Community :grinning_face_with_smiling_eyes:
To help you, we need a little bit more information.
Can you send us a screenshot of your project dependencies please ? Like this:

thank you!

image

Ok and when you click on Manage packages, in All Packages if you write the name of the nupkg do you find it ?

You can just add the repository as a source and directly load the packages from within Manage Packages. You don’t have to download them locally and then add them. Studio does that for you.

1 Like

Hi ! Indeed that’s easier :smile: but I am working with companies that do not allow any interaction from studio to internet. That’s why I am sharing this other technique, to help others if they face the same situation :wink:

Hi, I experience exactly the same problem :

    • Copied into nupkg local diretory with the others local packages
    • Impossible to find it using the package manager

I tried this without any success :

  • Move the nupkg somewhere else and add this new local folder as new source.
  • Download and install somes other packages

Would it be possible that my studio version 2022.10.3 do not accept most of the packages from marketplace ?

Hi !

Did you by any chance create a Windows project (and not a Windows-Legacy project) ?

If I remember correctly as UiPath will remove the Windows-Legacy (.net4) option for the Windows option (.net6) we can’t anymore add any package from marketplace. It needs to be compatible with .net6

Test : If I create a Windows-Legacy project, then I see all packages from the marketplace and local repo.

Many Thanks Hiba, you pointed out the reason.

Best regards

1 Like

Great news ! :smile:
Note that v2022.10 is the last version that will allow you to create windows-legacy projects (= last version to use any marketplace component). If the marketplace component is not upgraded then it will not appear anymore in the other UiPath Studio version (even if you try to force it by downloading manually, it won’t) :confused:

1 Like