Under linux follow https://github.com/dotnet/coreclr/blob/master/Documentation/install/get-dotnetcore-dnx-linux.md
To compile the c file : gcc -shared -o ffi_test.so ffi_test.c
dotnet restore
LD_LIBRARY_PATH=. dotnet run
Under linux follow https://github.com/dotnet/coreclr/blob/master/Documentation/install/get-dotnetcore-dnx-linux.md
To compile the c file : gcc -shared -o ffi_test.so ffi_test.c
dotnet restore
LD_LIBRARY_PATH=. dotnet run