Creating custom actives in C# .NET 6

I tried watching these video but have not made much progress. Each of these examples uses the old .Net Framework and I am using .Net Core 6. I tried importing System.Activities and System.ComponentModel.Composition from .Net Framework 4.8 into my .Net Core 6 project and created the below class. After building the nuget package and importing into my UIPath project I can see the dependency to HelloUser listed under dependencies but none of the activities show up under the Activities tab in UI Path.

using System.Activities;
using System.ComponentModel;

namespace UIPathRPA
{
    public class HelloUser : CodeActivity
    {
      [Category("Input")]
      public InArgument<string> Name { get; set; }
      [Category("Output")]
      public OutArgument<string> Result { get; set; }
      protected override void Execute(CodeActivityContext context)
      {
         string input = Name.Get(context);
         string result = "Hello " + input + "!";
         Result.Set(context, result);
      }
    }
}
2 Likes