Skip to content
Alexander Stärk edited this page Sep 25, 2026 · 1 revision

FAQ

Do I need to reference Basilisque.DependencyInjection.CodeAnalysis manually?

No. Installing Basilisque.DependencyInjection is enough for normal consumption.

Can I still register services manually?

Yes. You can always add manual registrations directly to IServiceCollection.

Can one implementation be registered multiple ways?

Yes. Multiple registration attributes on the same type are supported.

Are open generics supported?

Yes, including open generic service type mappings.

Can I use keyed services?

Yes. Set the Key property on registration attributes.

What if my project has advanced registration logic?

Use manual partial-class customization in DependencyRegistrator for advanced scenarios.

See Manual Registrator Customization (Partial Class).

Is this suitable for analyzer ecosystem integration?

Yes. Use analyzer extension support via the ExtensionSupport package and extension integration mechanism.

See Analyzer Extension Support (for Source Generators).

Clone this wiki locally