Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="4.0.0-preview-665" />

 CompositionRootNotFoundException

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