Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="5.6.0" />

 CompositionRootNotFoundException

Occurs when composing requested but no ICompositionRoot is present in the given assembly.
using System; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Serialization; namespace Stashbox.Exceptions { [Serializable] [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] public class CompositionRootNotFoundException : Exception { public CompositionRootNotFoundException(Assembly assembly, [System.Runtime.CompilerServices.Nullable(2)] Exception innerException = null) : base("No ICompositionRoot found in the given assembly: " + assembly.FullName + ".", innerException) { } protected CompositionRootNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }