For example I have:
using System;
using System.Runtime.InteropServices;
namespace NativeLibrary
{
public class Class1
{
[UnmanagedCallersOnly(EntryPoint = "add")]
public static int Add(int a, int b)
{
return a + b;
}
}
}
How can I publish it for Linux in .so format?
1