using System;
using System.Activities;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
public class MyAsyncActivity : AsyncCodeActivity
{
…
Don’t think I can go without the reference of System.Activities. But I never specify any version in the project file. Not sure why it stops the package from being installed.
Ensure that your custom activity project does not include a specific version of the System.Activities package that conflicts with the one in UiPath Studio. In your .csproj file, remove any direct dependencies on System.Activities. Instead, rely on UiPath’s built-in version by removing any explicit PackageReference to System.Activities. If you need System.Activities types in your code, simply include using System.Activities; in the code without adding it as a package dependency. Rebuild the project after making these changes, and try installing the custom activity again.
Hi @kardelencihangir Thank u. Had followed your advice, did dotnet clean and build again. Problem remains. Pasting the complete csproj file below. (I tried both net6.0 and net8.0 for the target framework. Result same).
====
net6.0
enable
enable
true
MyRpaCustomActivities
1.0.0
Wang Yu
Custom Activites of my RPA Project
====