A multi-module assembly is a .NET assembly composed of a prime module and one or more additional modules. Together, these modules form a single logical assembly that is loaded by the .NET runtime.
Dotfuscator supports protecting multi-module assemblies and automatically updates the assembly manifest so that the protected modules continue to function correctly.
Configuring a Multi-Module Assembly
To protect a multi-module assembly:
- Add the prime module to your Dotfuscator configuration as an input assembly.
- Ensure that all additional modules are located in the same directory as the prime module.
Dotfuscator automatically discovers the remaining modules and includes them in the protection process. You do not need to add each module individually.
Best Practices
- Add only the prime module to the Dotfuscator project.
- Keep all modules in the same directory during the protection process.
- Protect all modules together to ensure references remain synchronized.
- Test the protected application to verify that all modules load correctly at runtime.