Skip to content

ImportAddinAssemblyAttribute

Damian Suess edited this page May 14, 2026 · 1 revision
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