Created a custom package in visual studio from a C# program. Created a nuget package and installed in UiPath activities. The custom activity installs but doesn’t get listed in the activities pane of UiPath Studio
Steps to reproduce:
Created a sample program which uses external dependencies such as iTextSharp, Bytescout, etc.
Built the program, no errors
Created NuGet package using NuGet Package explorer.
Added in Packages folder of UiPath
Installed from Activity Package Manager
Custom Activity Not Seen in Activities pane of UiPath Studio
Current Behavior:
Custom Activity Not Seen in Activities pane of UiPath Studio
Expected Behavior:
Custom Activity should be available for use in UiPath Studio
Studio/Robot/Orchestrator Version:
UiPath Studio Trial 2016.2.6379
Last stable behavior:
Last stable version:
OS Version: Windows 10
Others if Relevant: (workflow, logs, .net version, service pack, etc):
[UiPath.Workflow.Logging.StudioTraceListener] [44] System.BadImageFormatException: Could not load file or assembly ‘ReadingValidBarcodePagesFromPDF, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’. This assembly was compiled for a different processor.
at System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence evidence)
at System.Reflection.Assembly.LoadFile(String path)
at UiPath.Project.ActivityPackageManager.LoadAssemblyFile(String filePath)
I haven’t encountered this with UiPath Studio, so can’t say for sure.
What I can say is that I haven’t encountered any issues while building for AnyCPU (naming might vary depending on your IDE).
It might also be that one of your other libraries that you’re using for that project is causing the issue.
Can you try building a package that uses only system libraries with same settings and see if it causes an issue?
If it doesn’t, try adding the libraries that you use in this package one by one and see if you can pinpoint which one is it.
in your package of NuGet in the option id, is very important set the word “xxx.Activities” once considered the word now you can see you custom package in activities list.