Page tree

  Wiki Navigation


 Recently Updated

 Latest Releases

 MediaPortal 1.34
            Releasenews | Download
 MediaPortal 2.5
            Releasenews | Download

Table of Contents


How to implement version compatibility in your plugin


As of v 1.2.0 MediaPortal introduced a Version Compatibility system to ensure plugins are compatible with a user's installed version of MediaPortal.

There are two main cases for version compatibility:

  1. Plugin designed for a version of MediaPortal older than the one the user has installed.
  2. Plugin designed for a version of MediaPortal newer than the one the user has installed.

Thus two new attributes have been added to allow you to tag your plugin for version compatibility in each of these cases.

Tag your plugin

Plugins must tag their plugin using the two new attributes:

  • CompatibleVersion - the version of MediaPortal the plugin was built against
  • UsesSubsystem - which MediaPortal subsystems the plugin uses 

Both attributes can be used on the Assembly level or on the Class level.

Warning: Any plugin that is not tagged using the above attributes will be deemed incompatible with MediaPortal

Attribute Description and Usage

In order to tag plugins with version and compatibility information, the following attributes have been defined:
CompatibleVersion(designedForVersion[, minRequiredVersion]) This attribute is used to specify against which version of MediaPortal the plugin was built. It may also optionally specify the minimum MediaPortal version required so that it can work properly. Versions are specified as strings in the form "x.y.z.w" (e.g. "" is 1.2.0 Beta). If minRequiredVersion is omitted it is assumed equal to designedForVersion. Any version of MediaPortal earlier than minRequiredVersion will consider the plugin incompatible and will not load it. If any subsystems used by the plugin have breaking changes in any version later than designedForVersion, the plugin will be considered incompatible and will not be loaded.

 The attribute can be applied to either or both the assemblies or classes. When applied to an assembly it will affect all contained classes that do not have the same attribute applied upon them.

The attribute can be applied only once on each assembly and/or class. UsesSubsystem(subsystem[, used]) This attribute is used to specify which subsystems the plugin is using. This information combined with the CompatibleVersion attribute information allows the Compatibility Manager to determine if a plugin is still compatible with a version of MediaPortal released after the release of the plugin. Specify only one subsystem (as a string) in the subsystem parameter. The optional parameter used (default is true) can be used to specify if the subsystem is used or not. This is especially useful if you have marked an assembly as using a specific subsystem but you want to exclude some classes.

The attribute can be applied to either or both the assemblies or classes. When applied to an assembly it will effectively be applied to all contained classes. If some of the contained classes are also tagged with the same subsystem(s) the attribute applied to the classes takes precedence.

 The attribute can be applied as many times as needed, once for each used subsystem, to tag each assembly and/or class.

Note: Valid subsystems are defined in MediaPortal-1 / Common-MP-TVE3 / Common.Utils / CompatibilityInfo.cs

Basically any plugin will be compatible as long as:

  1. minRequiredVersion is earlier than the current version of MediaPortal
  2. no subsystems used by the plugin have breaking changes in any version of MediaPortal later than the designedForVersion.

The most common case for incompatibility is when there are required skin changes in MediaPortal, since most plugins use the MP.SkinEngine subsystem.  

Subsystem Hierarchy

To unambiguously describe the functionality used, we have come up with a hierarchy of subsystems. The full set of MediaPortal functionality that plugin developers can use, has initially been categorized into a number of top-level subsystems. Each subsystem can consist of a number of lower level subsystems. The functionality described by a higher level subsystem is always a superset of the functionalities of the lower level subsystems that comprise it.


To optimize load speed and maintain plugin integrity, each assembly is first checked for compatibility based on the assembly level attributes. If during that check it is deemed incompatible, none of the contained plugins will be loaded, even if individual plugins inside the assembly may be compatible.

Plugin Installer

The new MPEMaker will only pick up the attributes you set on your assembly. So if you want the compatibility info displayed by the Plugin Installer to correctly reflect your plugin's settings, you have to set attributes as shown in the example below:

1. Reference the new Common.Utils.dll from MediaPortal install dir.

2. The easiest way is to add these lines to your AssemblyInfo.cs:

using MediaPortal.Common.Utils;
[assembly: CompatibleVersion("")]
[assembly: UsesSubsystem("MP.SkinEngine")]
[assembly: UsesSubsystem("MP.Config")]


MediaPortal and TV Server SubsystemVersions

The following list contains all the SubsystemVErsions currently available for MediaPortal and TV Server:


// MediaPortal subsystems' breaking versions
[assembly: SubsystemVersion("MP", "")]


[assembly: SubsystemVersion("MP.SkinEngine", "")] // MP 1.4.0 Pre Release
[assembly: SubsystemVersion("MP.SkinEngine.Core", "")]
[assembly: SubsystemVersion("MP.SkinEngine.Controls", "")]
[assembly: SubsystemVersion("MP.SkinEngine.Dialogs", "")]


[assembly: SubsystemVersion("MP.Input", "")]
[assembly: SubsystemVersion("MP.Input.Mapping", "")]
[assembly: SubsystemVersion("MP.Input.Keyboard", "")]
[assembly: SubsystemVersion("MP.Input.Mouse", "")]


[assembly: SubsystemVersion("MP.Players", "")]
[assembly: SubsystemVersion("MP.Players.DVD", "")]
[assembly: SubsystemVersion("MP.Players.Video", "")]
[assembly: SubsystemVersion("MP.Players.TV", "")]
[assembly: SubsystemVersion("MP.Players.Music", "")]


[assembly: SubsystemVersion("MP.DB", "")]
[assembly: SubsystemVersion("MP.DB.Music", "")]
[assembly: SubsystemVersion("MP.DB.Videos", "")] // MP 1.3.0 Alpha 1
[assembly: SubsystemVersion("MP.DB.Pictures", "")]


[assembly: SubsystemVersion("MP.Filters", "")]
[assembly: SubsystemVersion("MP.Filters.TsWriter", "")]
[assembly: SubsystemVersion("MP.Filters.MPFileWriter", "")]
[assembly: SubsystemVersion("MP.Filters.StreamingServer", "")]
[assembly: SubsystemVersion("MP.Filters.TsReader", "")]
[assembly: SubsystemVersion("MP.Filters.DVBSubs", "")]
[assembly: SubsystemVersion("MP.Filters.AudioSwitcher", "")]
[assembly: SubsystemVersion("MP.Filters.IPTV", "")]


[assembly: SubsystemVersion("MP.Externals", "")]
[assembly: SubsystemVersion("MP.Externals.MediaInfo", "")]
[assembly: SubsystemVersion("MP.Externals.SQLite", "")]
[assembly: SubsystemVersion("MP.Externals.Gentle", "")]  // MP 1.4.0 Pre Release
[assembly: SubsystemVersion("MP.Externals.Log4Net", "")] // MP 1.4.0 Pre Release
[assembly: SubsystemVersion("MP.Externals.BASS", "")]
[assembly: SubsystemVersion("MP.Externals.HTMLAgilityPack", "")] // Added after 1.6 pre-release


[assembly: SubsystemVersion("MP.Config", "")]
[assembly: SubsystemVersion("MP.Config.DefaultSections", "")]


[assembly: SubsystemVersion("MP.Plugins", "")]             // reserved for plugin defined subsystems
[assembly: SubsystemVersion("MP.Plugins.Music", "")]
[assembly: SubsystemVersion("MP.Plugins.Videos", "")]
[assembly: SubsystemVersion("MP.Plugins.Pictures", "")]
[assembly: SubsystemVersion("MP.Plugins.PowerScheduler", "")]
[assembly: SubsystemVersion("MP.Plugins.TV", "")]          // This refers to TVPlugin


//[assembly: SubsystemVersion("MP.Plugins.3rdParty", "")]  // reserved for 3rd party plugin


// TV Server subsystems' breaking versions


[assembly: SubsystemVersion("TVE", "")]


[assembly: SubsystemVersion("TVE.DB", "")]
[assembly: SubsystemVersion("TVE.Controller", "")]
[assembly: SubsystemVersion("TVE.Scheduler", "")]
[assembly: SubsystemVersion("TVE.Config", "")]
[assembly: SubsystemVersion("TVE.Config.Controls", "")]


[assembly: SubsystemVersion("TVE.Plugins", "")]
[assembly: SubsystemVersion("TVE.Plugins.PowerScheduler", "")]
[assembly: SubsystemVersion("TVE.Plugins.XmlTV", "")]
[assembly: SubsystemVersion("TVE.Plugins.WebEPG", "")]
[assembly: SubsystemVersion("TVE.Plugins.TvMoview", "")]


[assembly: SubsystemVersion("TVE.Plugins.ServerBlaster", "")]







Version Compatibility


1.1.0 to 1.2.0

WindowPluginBase Class


1.2.0 to 1.3.0

Compatibility Subsystems


1.3.0 to 1.4.0

HTML Agility Pack


1.5.0 to 1.6.0



1.5.0 to 1.6.0

IMDB class changes


1.2.0 to 1.3.0

VideoDatabase interface changes


1.2.0 to 1.3.0





This page has no comments.