Marketplace
latest
false
Banner background image
Marketplace User Guide
Last updated Apr 16, 2024

Package Metadata



Intro

Looking at the activity package built in this tutorial, you'll see several placeholders where information such as the author, license, icon, etc. should go. Let's personalize the package by replacing those placeholders with real information.

The focus of this section will be on 4 files from the Design project:

  • Assembly Info
  • Package-level Assembly Info
  • Global Assembly Info
  • Nuspec

Each holds specific pieces of package-level metadata. For a detailed look at each file, see the Building Activity Packages section.



Steps

1) Add Package Decorators

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.
In this file, change the icon and tags fields as follows.
<?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) Add Company-Specific Info

In the same project, navigate to Properties/GlobalAssemblyInfo.cs, and update the Company, Product, and Copyright:
...
[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) Add Package-Specific Info

Now move to Properties/AssemblyInfo.cs and update the package Name (Title) and Description:
...
[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) Add a Specific Version

Lastly, open Properties/MyCompany.MyProductAssemblyInfo.cs, and update the package version by changing all occurrences of 0.1 to 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) Rebuild the Package

Rebuild the package and import it into UiPath Studio as in the previous section. Open the Package Manager and notice how your package now has a new icon, description, and updated metadata.



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.