ffi-overhead icon indicating copy to clipboard operation
ffi-overhead copied to clipboard

.NET Core 2.1 test

Open dzmitry-lahoda opened this issue 5 years ago • 8 comments

.NET Core 2.1 runs on linux and installs-compiles from command line. I hope to see C# or F# test. Just plug here issues so that will return and do the stuff when trying dotnet toolchain on linux.

dzmitry-lahoda avatar May 29 '18 15:05 dzmitry-lahoda

I've just merged a csharp impl https://github.com/dyu/ffi-overhead/pull/10

I'm not familiar with how to setup dotnet on linux (never used dotnet) Can you do a PR for F#?

dyu avatar May 30 '18 01:05 dyu

You could just add another entry for the run-all script for .NET Core. I haven't used it, but just run it over the same executable; like what the Java one does.

NattyNarwhal avatar May 30 '18 01:05 NattyNarwhal

I've just added mono to the results. I'll try to install .NET Core 2.1

dyu avatar May 31 '18 16:05 dyu

dotnet csharp_hello.exe 
A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '/data/dyu/dev/gh/ffi-overhead/'.
Failed to run as a self-contained app. If this should be a framework-dependent app, add the /data/dyu/dev/gh/ffi-overhead/csharp_hello.runtimeconfig.json file specifying the appropriate framework.

dyu avatar May 31 '18 16:05 dyu

Have you followed these steps https://www.microsoft.com/net/download/linux-package-manager/ubuntu14-04/sdk-current ?

dzmitry-lahoda avatar May 31 '18 17:05 dzmitry-lahoda

I have searched for error

https://duckduckgo.com/?q=libhostpolicy.so&t=ffab&atb=v111-2_g&ia=web

Try delete csharp_hello.runtimeconfig.json if it is presented.

dzmitry-lahoda avatar May 31 '18 17:05 dzmitry-lahoda

Yes I installed using those exact steps.

No csharp_hello.runtimeconfig.json present.

dyu avatar Jun 01 '18 01:06 dyu

Cool. Better to wait for https://github.com/dotnet/csharplang/issues/191 . I guess it will make C# one of the tops:) May be by that time json issue will go away either.

dzmitry-lahoda avatar Sep 14 '18 15:09 dzmitry-lahoda