I'm creating bindings for Xamarin.Mac
/ MonoMac
. I'd like to embed the dylib
in the generated dll
like it's done on Xamarin.iOS
with the [LinkWith]
attribute.
Is it possible to do that ? if so how ? Or should I load the dylib
from the consuming application ? again in this case, how ?
I tried:
- dropping the dylib
in the Native References folder (doesn't work)
- adding a [assembly: MonoMac.RequiredFramework]
attribute (doesn't find the dylib
)
I managed to load the
.dylib
from the consuming application by doing the following:.dylib
to your project as ContentRequiredFrameworkAttribute
:AppDelegate
constructor:That still doesn't embed the
.dylib
in the bindings assembly, but it qualifies as progress