milleniumbug / NativeFileDialogSharp

Cross-platform native file dialogs for C#
zlib License
26 stars 6 forks source link

No Linux Support #3

Closed BoyBaykiller closed 5 months ago

BoyBaykiller commented 5 months ago

I use your bindings in my project and they work fine on my Windows machine however they don't on Linux. In particular the natives in the runtimes folder don't get copied into the output resulting in an System.DllNotFoundException, as soon as the application calls the bindings.

An unhandled exception of type 'System.DllNotFoundException' occurred in NativeFileDialogExtendedSharp.dll: 'Unable to load shared library 'nfd' or one of its dependencies

I tried manually copying the given libnfd.so into my projects output dir and now its giving me System.EntryPointNotFoundException. So it can find the Dll but not the function it it.

An unhandled exception of type 'System.EntryPointNotFoundException' occurred in NativeFileDialogExtendedSharp.dll: 'Unable to find an entry point named 'NFD_Init' in shared library 'nfd'.'

BoyBaykiller commented 5 months ago

I am sorry. There is an other repo named NativeFileDialogSharp, and I accidentally opended the issue here instead of in it. The good news is: I switched to using your nuget package and it works on Linux :)