Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

ImportAddinAssemblyAttribute

Caleb Morris edited this page Nov 3, 2015 · 2 revisions
Home > Reference Manual > Description of Add ins and Add in Roots > Description models > ImportAddinAssemblyAttribute

An attribute used to declare that a particular assembly needs to be imported for use in this add-in.

This is useful when an add-in depends on several non-add-in assemblies.

Example

Below is an example add-in that references (project, nuget, system, etc.) an external library.

In this case the add-in ExampleAddin contains a reference to ExternalLibrary.dll. This will cause mdtool to package the dll into the add-in package during packing.

// AddinInfo.cs
using Mono.Addins;

[assembly:Addin (
	"ExampleAddin", 
	Namespace = "ExampleAddin",
	Version = "0.0.1"
)]

[assembly:ImportAddinAssembly("ExternalLibrary.dll")]
Clone this wiki locally