Skip to content

Instantly share code, notes, and snippets.

@rionmonster
Created December 29, 2016 22:31
Show Gist options
  • Save rionmonster/233f47fda7d9cd298b48650f768a9bad to your computer and use it in GitHub Desktop.
Save rionmonster/233f47fda7d9cd298b48650f768a9bad to your computer and use it in GitHub Desktop.
Is this sufficient enough to load contents for MEF Components?
[PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)]
[ProvideAutoLoad(UIContextGuids80.SolutionExists, PackageAutoLoadFlags.BackgroundLoad)]
public sealed class ExamplePackage : Package
{
protected override async task Initialize()
{
// Load necessary stuff for MEF Component here
base.Initialize();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment