xoofx / SharpScss

A portable cross-platform pinvoke .NET wrapper around libsass to convert SCSS to CSS
BSD 2-Clause "Simplified" License
55 stars 10 forks source link

libsass not resolving on Mac for .NET Core #6

Closed AndrewBrianHall closed 7 years ago

AndrewBrianHall commented 7 years ago

On the Mac today, libsass.so is being downloaded as the native library dependency. The SharepScss tries to load the library simply using "libsass" with no extension. This means that .NET Core looks for libsass.dylib and libsass on the Mac which results in a DllNotFoundException being thrown.

xoofx commented 7 years ago

Good catch, never tested it actually on macosx and thought that it was also handled by .NET Core. Will recompile to dylib instead.

madskristensen commented 7 years ago

@xoofx , is there anything we can do to help with getting this fixed?

xoofx commented 7 years ago

I pushed a 1.3.8 package with the dylib for macosx, let me know if this is working.

I'm unable to test the project, as the native libraries are not well resolved while it seems to work when consuming the NuGet package... looks like a bug in dotnet cli/tests...

AndrewBrianHall commented 7 years ago

It's working for me on my Macbook, thanks

xoofx commented 7 years ago

Great, thanks for the feedback