Error with Windows Compatibility Mode still not showing Custom Activities

I have a custom activity which was running fine on UiPath 2021.10.5 , but after upgrading to 2022.10.3, the project type was windows-legacy then I converted that project to windows because my client is going to upgrade it to 2024.10.x and windows-legacy will not work on that one , after that it was not working ,so I tried to build a new .dll file by Visual studio 2015 , but initially it was showing in the manage packages but after some time it’s shows nothing,although path is correct . Then I searched on internet it says it can be a .net version error, and we have to migrate to .net6 then I followed the documentation and also this link

then I changed the target framework to 4.6.1 and build the package i tried with the solution (which I mentioned as 1 in picture) then I am getting an error
I created the .dll file and with the help of nuget package manager I added folder
net6.0-windows7.0



Also I followed the UiPath docs which also mentioned to add .net461 folder and adding files .dll and config
I tired by adding System.activites.DLL file in .net6 folder also


Error :-
Could not load type ‘System.Activities.XamlIntegration.ActivityXamlServices’ from assembly ‘System.Activities, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null’.

Then I tried without the System.Activite.dll file , but nothing works
I also got another error like this

I followed this link saying solution for the error
Error :-
Could not load type ‘System.Activities.XamlIntegration.ActivityXamlServices’ from assembly ‘System.Activities, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null’.

That I have to add a reference for the assembly

But it shows me error

If I remove the initial Reference of the System.Activities then another error comes again.
Not able to get the package working .
Thanks in Advance

Hi Ashish,

I have stopped using the Nuget Manager because I found a method to automatically create the package upon publishing the activities in Visual Studio.

I use Visual Studio 2022 and install some frameworks within VS 2022 plus some configurations in order to make it work. If you are interested, I could send you the rough guide and see if it works for you.

1 Like

Hi Jordan ,
Yes, i am very much interested in learning new things and also it will save my job .
Thanks

Hi Ashish,

Refer to the attached guide and see if it helps you. What version of UiPath Studio are you using? I’m still on 2023.4.7

(attachments)

Custom-VS2022.pdf (154 KB)

i am using 2022.10.3 still i need some clarification on the steps that you mentioned in the PDF , i am not able to follow this