Include dynamically loaded assemblies with the client control
- Last UpdatedJul 08, 2024
- 1 minute read
When the primary client control assembly is imported into the HMI/SCADA project or application during an application’s deployment, the system identifies all statically-linked dependent assemblies and imports them into the HMI/SCADA application as well. However, if the client control contains dynamically loaded assemblies, these assemblies are not automatically loaded in the HMI/SCADA application or project.
There are two methods for ensuring that the client control’s dynamically loaded assemblies are included in the galaxy when the primary assembly is imported:
-
By including the list of dynamically loaded assemblies in an XML manifest resource that is embedded in the primary assembly. The advantage of this method is that the required configuration information is packaged with the assembly, so no any other packing mechanism is required.
-
By including the list of dynamically loaded assemblies in an external XML configuration file that is stored in the same directory as the primary assembly.
Both methods can be used simultaneously to provide redundancy, in the event that one of the dynamically loaded assembly lists is missing a required assembly.
Related Links
- Requirements for both inclusion methods
- Sample XML for a dynamically loaded assembly list
- XML schema for the dynamically loaded assembly list
- Embed the XML manifest resource in the primary assembly
- Include the XML manifest resource in an external configuration file
- Prevent dynamically loaded assembly import issues