Skip to content

Xcaciv/Xcaciv.Loader

Repository files navigation

Xcaciv.Loader

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

Features

  • 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

Multi-Framework Support

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.

Specification

For detailed specifications, see the specification document

About

C# module for runtime loading of types

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •