# `dotnet/` — Primary backend (.NET 9 Clean Architecture)

Materialized in Phase 4.

```
dotnet/
├── src/
│   ├── Api/              # ASP.NET Core Web API (entry point)
│   ├── Application/      # CQRS handlers, MediatR, validators
│   ├── Domain/           # Entities, value objects, domain events
│   ├── Infrastructure/   # EF Core, JWT, file storage, email, SignalR
│   └── Shared/           # ApiResponse, Result, common contracts
└── tests/
    ├── Api.Tests/
    ├── Application.Tests/
    └── Infrastructure.Tests/
```

Dependency direction: **Api → Application → Domain ← Infrastructure**. Domain has zero external dependencies.

See [GENESIS.md §18](../GENESIS.md) for the foundation file list.
