Skip to content

Installation

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

Installation

Consumer projects

For normal application or library projects, install:

This package includes:

  • Runtime API (Basilisque.DependencyInjection)
  • Source generator (Basilisque.DependencyInjection.CodeAnalysis) as dependency

Analyzer extension projects

If you are building your own Roslyn analyzer/generator extension for Basilisque DI, install:

See Analyzer Extension Support (for Source Generators).

Requirements

  • .NET project using Microsoft.Extensions.DependencyInjection
  • Source generators enabled (default in modern SDK-style projects)

Verification

After build, you should be able to call at least one generated method from your root namespace:

  • services.RegisterServices()
  • services.InitializeDependencies()

If these methods are missing, see Diagnostics and Troubleshooting.

Clone this wiki locally