Skip to content

A missing prerequisite doesn't compile.

Each library's registration returns a marker builder that the libraries it needs extend, so a host that leaves one out fails to build instead of failing at run time.
Terminal window
dotnet add package NCode.Registration

Compile-time prerequisites.

A registration that needs another library extends that library’s builder, so the host calls them in order or doesn’t compile.

One marker per library.

Registering a library’s marker twice throws, and IsRegistered says whether a library is there.

Strict configuration.

BindStrictly fails on a configuration key that no property takes, instead of starting on defaults.