Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Asset Framework and PI System Explorer (PI Server 2024 R2)

Create an XML registration file

  • Last UpdatedSep 26, 2024
  • 1 minute read

Note: The AF SDK .NET 3.5 is no longer shipped beginning with the release of PI AF 2018 SP3 Patch 2. We recommend all customers migrate to the AF SDK .NET 4 and update their plugins accordingly. There are no plans for additional development work on the .NET 3.5 version of the AF SDK.

For complex or frequently-executed registrations, you can create an XML file that contains the required settings.

To create the XML file, invoke RegPlugin, specifying both the required settings and the XML file name using the /RegFile: (/RF:) parameter.

Example

To create an XML file that registers a .NET 3.5 and .NET 4.0 version of MyPlugIn.dll, issue the following command:

RegPlugIn /RF: PlugIns\MyPlugIn.dll PlugIns\4.0\MyPlugIn.dll

The resulting registration file can be edited to supply any additional information required for the registration of the plug-in (not normally necessary). For 64-bit plug-ins, the registration file must be edited to set LoadProperties to x64 and ensure that Directory is set to x64:

<SupportAssembly>
<FilePath>x64\AFDRTest32Bit64Bit.dll</FilePath>
<ID>1e00000c-3228-366a-3809-737433324269</ID>
<Name>AFDRTest32Bit64Bit</Name>
<Description>AFDRTest32Bit64Bit.dll Support Assembly</Description>
<Directory>x64</Directory>
<LoadProperties>x64</LoadProperties>
</SupportAssembly>

To register both implementations using the registration file, issue the following command:

RegPlugIn /PISystem:MyPISystem MyPlugIn.xml

TitleResults for “How to create a CRG?”Also Available in