Hi Everyone ,
I am finding difficulty in implementing custom activity to UiPath 2022.4.4.I have used VS community version 2022 and UiPath activity creator V4 for building custom activity. I am stuck with 3 challenges describing below
-
I followed simple sum activity creation reference taken from DEMO: Build custom activities in minutes with the UiPath Activity Creator , While publishing the package instead of .nupkg file i am getting dlls,pdb and design files. attaching screenshot for reference also attaching publish settings of vs.
I have noticed only Target framework is net6.0-windows is available but in official UiPath documentation it is net461 Activity creator document
-
I have checked option in VS “generate nuget on built” , so i got nuget package from debug/bin folder . I have copied and placed correctly in UiPath manager package installation path. In manage packages .nupkg is not displaying to install.
3.Then I have tried nuget package explorer and exported .nupkg Migrating Activities to .NET 6
Now the package is displaying in manage packages in UiPath.however, installation is getting failed .
I pulled the log and found this error
"23:11:30.3148 => [ERROR] [UiPath.Studio.Project.exe] [15] System.IO.FileNotFoundException: Could not load file or assembly ‘System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The specified file cannot be found.
File name: ‘System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’
at System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)
at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle typeInstantiationContext, RuntimeTypeHandle methodInstantiationContext)
at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type genericTypeArguments, Type genericMethodArguments)
at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent)
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType)
at System.Reflection.RuntimeAssembly.GetCustomAttributes(Type attributeType, Boolean inherit)
at System.Attribute.GetCustomAttributes(Assembly element, Boolean inherit)
at UiPath.Studio.Shared.Utilities.AssemblyLoaderUtils.TryLoadAssembly(IDictionary2 cache, IReadOnlyDictionary
2 binAssemblies, String path, Assembly& assembly)
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
"
Feel free to contribute and resolve the problem . Thanks!
Happy Automation !