Forum Xamarin.Mac

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Loadable Bundles with Xamarin

lldblldb Member

Hi!

Macos has concept of loadable bundle.

How to build macos loadable bundle (code + resources in one place) with Xamarin? Is it possible?

We want third-party developers to create plugins (with UI) for our application that manages some user data.

Answers

  • ChrisHamonsChrisHamons USForum Administrator, Xamarin Team Xamurai

    Various people have looked into this over the years. Xamarin.Mac doesn't have built in support for these bundles, but they really are just special folder structures with a few files (binaries & info.plist) in certain places.

    Given the fact that you are a C# application though, and .NET binaries can embed resources, there isn't a strong reason to use Apple's format over your own if you aren't loading native code.

    It should be a few line to scan a given directory for managed assemblies, load them up, call and entry point, and look for resources next to each. There are a number of libraries that help structure your application for plugins, such as MEF which ships in System.ComponentModel.Composition.

Sign In or Register to comment.