Repository navigation
Diagnostics and Troubleshooting
Alexander Stärk edited this page Sep 25, 2026
·
1 revision
Symptoms:
-
services.RegisterServices()is not available -
services.InitializeDependencies()is not available
Check:
-
Basilisque.DependencyInjectionis referenced. - The project builds successfully.
- The root namespace and assembly name are valid.
Basilisque DI reports diagnostics for invalid factory setup:
-
BAS_DI_002: Factory method is invalid -
BAS_DI_003: Factory method cannot be determined -
BAS_DI_004: Provided factory method name is invalid
Typical causes:
- non-static factory method
- wrong return type
- ambiguous overloads
- missing keyed/non-keyed signature match
If you use BAS_DI_Extensions:
- ensure extension names exactly match generated extension method suffixes
- ensure extension analyzers are referenced by the consuming project
If a service is registered unexpectedly or with extra entries:
- check whether attributes are inherited from interfaces/base classes
- check
ImplementsITypeName(default istrue) - check for multiple registration attributes on the same implementation
When in doubt, inspect generated source output from the compiler and verify the emitted registration lines.