sdk
latest
false
UiPath logo, featuring letters U and I in white
Developer Guide
Last updated Oct 25, 2024

Creating activities with code

You can create your own custom activities in Microsoft Visual Studio using the UiPath activities template.

Prerequisites

Note: To use a NuGet package as a dependency for your custom activity, ensure to include it in both the activities project and the package project. This is essential for the package to appear on the dependency list of the activities package.

Adding the UiPath activities template in Visual Studio

The UiPath activities template (UiPath.Activities.Template) contains all the elements you need to get started on creating a custom activity. You can build activities that target the net6.0 framework which can be used in cross-platform projects in both Studio Desktop and Studio Web as well as in Windows projects in Studio Desktop.

  1. In Visual Studio, go to Tools > Options > Projects and Solutions > Locations and check the path set for the User project template location.
  2. Download the file UiPath.Activities.Template.zip from GitHub and copy it to the Visual Studio user project template location folder.


Creating a new project in Visual Studio

  1. In Visual Studio, select File > New > Project.
  2. Select the template UiPath Activities Template, and then click Next.



  3. Configure the details of the project and solution, and then click Create.

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.