UiPath Marketplace
最新
False
横幅背景图像
UiPath Marketplace 用户指南
上次更新日期 2024年4月16日

Package Metadata



简介

查看本教程中构建的活动包,您会看到几个占位符,其中应包含作者、许可证、图标等信息。 让我们通过将这些占位符替换为真实信息来个性化包。

本节的重点是设计项目中的 4 个文件:

  • 程序集信息
  • 包级别程序集信息
  • 全局程序集信息
  • Nuspec

每个都包含包级别的特定元数据。 有关每个文件的详细信息,请参阅 构建活动包 部分。



您需要满足的条件

步骤

1)添加包装饰器

打开 MyCompany.MyProduct.Activities.Design 项目,然后导航到以 .nuspec结尾的文件。 nuspec 文件从项目中提取所有包元数据,并将其显示在 Nuget 包中,该包会生成并导入到 UiPath Studio 中。
在此文件中,按如下方式更改 icontags 字段。
<?xml version="1.0"?>
<package>
  <metadata>
    <id>$title$</id>
    <version>$version$</version>
    <title>$title$</title>
    <authors>$author$</authors>
    <owners>$author$</owners>
    <description>$description$</description>
    <copyright>$copyright$</copyright>
    <requireLicenseAcceptance>true</requireLicenseAcceptance>
    <licenseUrl>https://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
    <projectUrl>https://integrations.uipath.com/docs/integrating-with-uipath</projectUrl>
    <iconUrl>https://www.dropbox.com/s/8nmnkmn73038m9z/boxIcon.png?dl=1</iconUrl>
    <tags>UiPath Activit MyCompany MyProduct Math Addition Arithmetic</tags>
    <dependencies>
    </dependencies>
  </metadata>
  <files>
    <file src="$OutputPath$**\)\)MyCompany.MyProduct*resources.dll" target="lib\)
et461"/>
  </files>
</package><?xml version="1.0"?>
<package>
  <metadata>
    <id>$title$</id>
    <version>$version$</version>
    <title>$title$</title>
    <authors>$author$</authors>
    <owners>$author$</owners>
    <description>$description$</description>
    <copyright>$copyright$</copyright>
    <requireLicenseAcceptance>true</requireLicenseAcceptance>
    <licenseUrl>https://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
    <projectUrl>https://integrations.uipath.com/docs/integrating-with-uipath</projectUrl>
    <iconUrl>https://www.dropbox.com/s/8nmnkmn73038m9z/boxIcon.png?dl=1</iconUrl>
    <tags>UiPath Activit MyCompany MyProduct Math Addition Arithmetic</tags>
    <dependencies>
    </dependencies>
  </metadata>
  <files>
    <file src="$OutputPath$**\)\)MyCompany.MyProduct*resources.dll" target="lib\)
et461"/>
  </files>
</package>

2) 添加公司特定信息

在同一项目中,导航到 Properties/GlobalAssemblyInfo.cs ,然后更新公司、产品和版权:
...
[assembly: AssemblyCompany("My Company")]
[assembly: AssemblyProduct("My Product")]
[assembly: AssemblyCopyright("My Company © 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: XmlnsPrefix("http://schemas.uipath.com/workflow/activities", "ui")]
[assembly: NeutralResourcesLanguage("en-US")]...
[assembly: AssemblyCompany("My Company")]
[assembly: AssemblyProduct("My Product")]
[assembly: AssemblyCopyright("My Company © 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: XmlnsPrefix("http://schemas.uipath.com/workflow/activities", "ui")]
[assembly: NeutralResourcesLanguage("en-US")]

3)添加特定于包的信息

现在,移至 Properties/AssemblyInfo.cs 并更新包名称(标题)和说明:
...
[assembly: AssemblyTitle("MyCompany.MyProduct.Activities")]
[assembly: AssemblyDescription("A package for performing simple arithmetic operations in UiPath Studio.")]
[assembly: AssemblyConfiguration("")]
......
[assembly: AssemblyTitle("MyCompany.MyProduct.Activities")]
[assembly: AssemblyDescription("A package for performing simple arithmetic operations in UiPath Studio.")]
[assembly: AssemblyConfiguration("")]
...

4) 添加特定版本

最后,打开 Properties/MyCompany.MyProductAssemblyInfo.cs ,然后通过将所有出现的 0.1 更改为 0.2 来更新包版本:
...
#if DEBUG
[assembly: AssemblyVersion("0.2.*")]
#else
[assembly: AssemblyVersion("0.2.0")]
#endif...
#if DEBUG
[assembly: AssemblyVersion("0.2.*")]
#else
[assembly: AssemblyVersion("0.2.0")]
#endif

5)重建包

如上一节所述,重新构建包并将其导入到 UiPath Studio 中。 打开包管理器,注意您的包现在如何具有新的图标、描述和更新的元数据。



此页面是否有帮助?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath 白色徽标
信任与安全
© 2005-2024 UiPath. All rights reserved.