Hi
I have created a Nuget package from a custom dll. I am using UiPath Community Edition. Hence I put nugget package in below folder shown in screenshot
But when I opened UiPath and open “Manage Packages” menu, it doesn’t appear there. Please refer full screen shot below
I’m having the same difficulty, attempting to use Community Edition (not installed in the Program Files directory, but Users\AppData location). I’ve added a local source to where my package resides. The new local source displays in the Manage Packages form, but my NuGet package doesn’t display as an option.
All right, i was able to self medicate on this one, figured it out, for anyone else who may struggle to get this to happen, see below for several of my own missteps. Note that i was only looking to build out a class library to pass as arguments between Activities, it didn’t do anything else other than to provide a structured data type.
First, reference the link below (i know it may appear above this post somewhere, but just reposting it so it’s all in one spot):
Some lessons learned:
Creating the class library correctly:
You must add System.Activities and (optional) System.ComponentModel.Composition libraries into your visual studio project. I thought those references were only necessary to create visual components, not an abstract class library. Bad assumption on my part.
When creating a public class, it has to be of type :CodeActivity
- eg. public class AutomationRecord:CodeActivity
You will get an error message in Visual Studio, you can apply the fix based on Visual Studio’s suggested solution, or you can write the following method within your class object:
So, all in all, your class should look like this (note this is in c#):
class AutomationRecord:CodeActivity{
public string MyCustomProperty1 {get; set;}
public string MyCustomProperty2 {get; set;}
protected override void Execute(CodeActivityContext context)
{
throw new NotImplementedException();
}
}
When creating the nuget package:
You don’t have to, but in that link, there is a nuget package manager that i was only able to successfully install through the github reference, because i’m working on Windows 7. Initially I attempted to build the nuget package through other mechanisms in visual studio, which could work, but the package manager made it much clearer what i had to do and where.
Ensure you add the word ‘Activities’ in the nuget package ID field (they call it out in the link)
That was it, hope this helps anyone who has reached this section of the thread in troubleshooting!