sdk
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

开发者指南

上次更新日期 2025年10月30日

Adding the external assembly .dll in UiPath Studio

请务必在尝试构建项目之前测试项目是否存在错误。

从“ 构建 ”菜单中,选择“ 构建解决方案”。 MathSquareOfSum.dll 库现已构建并保存在以下位置:

%UserProfile%\source\repos\MathSquareOfSum\MathSquareOfSum\bin\Debug

构建库后,“ 输出 ”面板应显示如下所示的消息:



Creating the NuGet package

  1. 启动 NuGet 包资源管理器,然后单击 “新建包 (Ctrl + N)”。 系统将显示一个拆分窗口,其中显示 包元数据包内容。 我们需要在后一部分中添加所有依赖项。
  2. 在“ 包内容 ” 部分中右键单击。 系统将显示上下文菜单。
  3. Select Add lib folder. Notice a new lib item is created in the Package contents section.
  4. 右键单击“ ”,然后选择“ 添加现有文件…”
  5. 加载上面创建的外部程序集 (.dll)。 在本例中, MathSquareOfSum.dll 文件位于 %UserProfile%\source\repos\MathSquareOfSum\MathSquareOfSum\bin\Debug 文件夹中。
  6. 选择文件后,访问“ 编辑 ”菜单,然后选择“ 编辑元数据”。 左侧面板现在配备了可编辑的元数据字段。
  7. 根据需要填写字段,以更好地描述自定义活动。
  8. Fill in the Id field. In our case, it can be UiPath.MathSquare.Activities, where the first value, UiPath, stands for the team which created the package. If no particular team was involved, the first value can be left blank.


  9. Select the green check mark button in the top-left corner of the Package metadata section to save all changes.
  10. 从“ 文件 ” 菜单中,选择“ 另存为...”。 系统将显示一个资源管理器窗口,允许您选择新文件的位置。
  11. 将文件保存在 UiPath 存储本地包的文件夹中(在 2021.4 之前的版本中为C:\Program Files (x86)\UiPath\Studio\Packages ,在版本 2021.4 及更高版本中为 C:\Program Files\UiPath\Studio\Packages )。 UiPath.MathSquare.Activities.1.0.0.nupkg 文件现已在包文件夹内的 UiPath.MathSquare.Activities 文件夹中创建。

Loading the NuGet package in Studio

  1. 从 Studio 访问 包管理器
  2. 由于我们将 NuGet 包保存在本地包文件夹中,因此该活动应在 本地 订阅源中可用。
  3. 搜索活动,单击“ 安装 ”,然后单击“ 保存”。 新活动现已安装,可以在自动化项目中使用。


  • Creating the NuGet package
  • Loading the NuGet package in Studio

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo
信任与安全
© 2005-2025 UiPath。保留所有权利。