Custom Activities Creator debug codes in visual studio

I see we can use UiPath Activity Creator to create custom activities, but I want to debug the codes from visual studio, how do I do that?
I tried to add a Console App project, but I do not see .net 6.0 in the target framework, and if select .net framework 4.6.1 and add the activities project as a reference, it will throw an error saying that it cannot be refereced by a project that tragets ‘.NETFramework, Version = v.4.6.1’

Hello @jocelyn.liu

  1. UiPath Activity Creator primarily supports .NET Framework.
  2. Create a .NET Framework Console App targeting a compatible version (e.g., 4.6.1).
  3. Add UiPath activities NuGet package to the Console App.
  4. Reference the custom activity project from the Console App.
  5. Set breakpoints, debug in Visual Studio.
  6. Test thoroughly in UiPath Studio after changes.

Thanks & Cheers!!!

Hi Kartheek,

Thanks for your reply!

I tried but there are error. kindly refer screenshot: