I am able to install my custom package ,but not able to view that activities.
Any one suggest me the mandatory points which needs to be taken care while creating custom package
Below my custom code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Activities;
using System.Activities.Presentation.Metadata;
using System.ComponentModel;
namespace MathCustomActivity
{
public class SimpleFormula : IRegisterMetadata
{
public string output()
{
return “Success”;
}
public void Register()
{
Hi Arivu,
Thanks for your reply.
I have copy paste the same code shared by you and followed the steps.But still facing same issue.
Installed the package but activities are not displayed.
There is no custom activity in that code, just a normal class.
An activity is a class that inherits from Activity, CodeActivity, NativeActivity or their generic counterparts or subclasses.
I have created the custom activity with your same code shared with me previously. Below the custom code. So only i have searched that activity in studio as " Addition1". But still facing same issue.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Activities;
using System.ComponentModel;
namespace Addition
{
public class Addition1 : CodeActivity
{
[Category(“Input”)]
public InArgument value1 { get; set; }
Can you please let me know the mandatory key points which needs to be taken care to convert our code to custom activity.
Kindly share us the sample simple custom activity code to for our reference.