Create an XML registration file
- Last UpdatedSep 26, 2024
- 1 minute read
- PI System
- PI Server 2024 R2
- PI Server
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 , 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 to and ensure that is set to :
<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