marketplace
latest
false
Marketplace 用户指南
- 概述
- 入门指南
- UiPath 市场供应商
- UiPath Marketplace 客户
- 发布准则
- 即用型自动化发布准则
- 解决方案加速器发布准则
- Integration Service 连接器的发布准则
- Process Mining 应用程序模板发布准则
- 解决方案加速器的优势
- 安全性与 IP 保护
- 安装指南
- 其他 UiPath 列表
- 连接器
- 如何创建活动
- 构建集成
重要 :
请注意,此内容已使用机器翻译进行了本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。
包元数据
用于使用作者、许可证和图标信息对活动包进行个性化的元数据字段和配置文件。
简介
查看本教程中构建的活动包,您会看到几个占位符,其中应包含作者、许可证、图标等信息。 让我们通过将这些占位符替换为真实信息来个性化包。
本节的重点是设计项目中的 4 个文件:
- 程序集信息
- 包级别程序集信息
- 全局程序集信息
- Nuspec
每个元数据都包含包级别元数据的特定片段。有关每个文件的详细信息,请参阅构建活动包部分。
需要满足的条件
- Visual Studio 社区版/专业版/企业版(需要升级到 2019 年)
- UiPath Studio
- 活动包
步骤
1.添加包修饰符
Open the MyCompany.MyProduct.Activities.Design project and navigate to the file ending in .nuspec. The nuspec file draws all your package metadata from the project and displays it in the Nuget package that gets built and imported into UiPath Studio.
在此文件中,按如下方式更改 icon 和 tags 字段。
<?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 来更新包版本:
...
#i DEBUG
[assembly: AssemblyVersion("0.2.*")]
#els
[assembly: AssemblyVersion("0.2.0")]
#endi
...
#i DEBUG
[assembly: AssemblyVersion("0.2.*")]
#els
[assembly: AssemblyVersion("0.2.0")]
#endi
5)重建包
如上一节所述,重新构建包并将其导入到 UiPath Studio 中。 打开包管理器,注意您的包现在如何具有新的图标、描述和更新的元数据。