[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Management packs that you create will always reference other management packs. When building or extending a management pack through code, defining references in the management pack are performed automatically. Whenever you use a type provided by another management pack, the SDK automatically creates a reference. If you are building the management pack through XML and then importing it, you must add the references by hand.

Every reference requires the same amount of information. You must provide three pieces of key information about the management pack you are referencing. The following table describes the required information.

Required Information Description

ID

The identifier (text, not GUID) of the management pack.

Version

Version of the management pack.

PublicKeyToken

The public key of the management pack.

When you have this information, you can define the reference. The reference has an alias, which is a single-word mapping to the management pack. This way, management packs that have long identifiers can be easily referenced.

Example

The following example shows how to create a reference to the System.WorkItem.Library management pack. The management pack creates a new class named RePackaging.Request and uses the referenced management pack’s System.WorkItem class as the base class.

Xml  Copy Code
<ManagementPack ContentReadable="true" SchemaVersion="1.1" OriginalSchemaVersion="1.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <Manifest>
	<Identity>
	<ID>RePackaging.Library</ID>
	<Version>1.0.0.6</Version>
	</Identity>
	<Name>RePackaging Library</Name>
	<References>
	<Reference Alias="WorkItem">
		<ID>System.WorkItem.Library</ID>
		<Version>7.0.5805.0</Version>
		<PublicKeyToken>9396306c2be7fcc4</PublicKeyToken>
	</Reference>
	</References>
  </Manifest>
  <TypeDefinitions>
	<EntityTypes>
	<ClassTypes>
		<ClassType ID="RePackaging.Request" Accessibility="Public" Abstract="false" Base="WorkItem!System.WorkItem" Hosted="false" Singleton="false" Extension="false" />
	</ClassTypes>
	</EntityTypes>
  </TypeDefinitions>
</ManagementPack>