I'm trying to export a function in C# that takes string as input parameter. Since I can only use blittable types, I had the following declaration
[System.Runtime.InteropServices.UnmanagedCallersOnly(EntryPoint = "eval",CharSet=CharSet.Unicode)]
public static void eval(string ct, string parms)
{
...
}
This code is not compiling because CharSet in .NET 7.0 is moved from System.Runtime.InteropServices to System.Runtime version 7.0.0.0. The problem is Nuget doesn't have the assembly loaded. The highest version is 4.3.1. Anyone has any suggestions? Thanks!