Sexy simple C# module for runtime loading of types from external assemblies.
using (var context = new AssemblyContext(dllPath, basePathRestriction: AppDomain.CurrentDomain.BaseDirectory)) // Load
{
var myInstance = context.CreateInstance<IClass1>("Class1");
return myInstance.Stuff("input here");
} // Unload- Dynamic assembly loading and unloading
- Type discovery and instantiation
- Security measures to prevent loading from restricted directories
- Automatic dependency resolution
- Multi-framework support: Build for both .NET 8.0 and .NET 10.0
This library can be built for both .NET 8.0 (default) and .NET 10.0.
See the Multi-Framework Documentation for details on how to build for different target frameworks.
For detailed specifications, see the specification document