<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity name="MyOEMApp" version="1.0.0.0" /> <clrClass clsid="{2bf59d73-5170-4524-b0e1-391760aaffa5}" progid="MyOEMApp.StandardAddInServer" threadingModel="Both" name="MyOEMApp.MyOEMApp.StandardAddInServer" runtimeVersion="" /> <file name="MyOEMApp.dll" hashalg="SHA1" />
The "name" attribute of the clrClass element consists of three parts, separated by periods. The first is the name of the root namespace, as highlighted in the following image.
The second part is the namespace that the COM class is defined within. For this example is it MyOEMApp, as highlighted in the following image. The Last piece is the name of the class that implements the ApplicationAddInServer interface. In this example, it is StandardAddInServer, as highlighted in the following image.
call "%VS90COMNTOOLS%vsvars32" mt.exe -manifest $(Projector)\OEMTestAddin.X.manifest -outputresource:"$(TargetPath)";#2
To verify that the manifest is correctly embedded, drag the add-in .dll into Visual Studio. The "RT_MANIFEST" folder displays, as shown in the following image. Double click the "2" icon to display a window with the actual manifest data.
<?xml version="1.0" encoding="utf-16"?> <Addin Type="Standard"> <ClassId>{2bf59d73-5170-4524-b0e1-391760aaffa5}</ClassId> <ClientId>{2bf59d73-5170-4524-b0e1-391760aaffa5}</ClientId> <DisplayName>MyOEMApp</DisplayName> <Description>Inventor OEM Sample App</Description> <Assembly>MyOEMApp\MyOEMApp.dll</Assembly> <Hidden>0</Hidden> </Addin>
Descriptions of elements in the addin file example:
There can be other elements that are defined for other add-ins that either do not apply, or are ignored for an OEM primary add-in.
Copy the add-in .dll to the new folder.