Hi Community,
This is my sample .net code
namespace MyMathLib
{
public class Methods
{
public Methods()
{
}
public static int Sum(int a, int b)
{
return a + b;
}
public int Product(int a, int b)
{
return a * b;
}
}
}
I'm trying to execute my dll (.net standard 2.1) using run powershell script command in pad . unfortunately it gives error
Unable to find type [MyMathLib.Methods].
At line:4 char:1
+ [MyMathLib.Methods]::Sum(10, 2)
But same code works in powershell 7 . can anyone please suggest how to successfully run this in pad?