Slic Toolkit V3.2 High Quality Jun 2026

Slic Toolkit v3.2: A Streamlined Framework for .NET Applications Slic Toolkit v3.2 is a lightweight, open-source framework designed to simplify the development of modular .NET applications, with a strong emphasis on clean architecture, dependency injection, and convention-based configuration. Version 3.2 represents a maturation of the toolkit, focusing on stability, performance enhancements, and improved developer ergonomics. Core Philosophy Unlike heavy, full-stack frameworks, Slic Toolkit adheres to the "Slic" principle—breaking down applications into small, self-contained functional slices rather than layered technical groupings (e.g., Controllers, Services, Repositories). Each slice contains everything it needs: API endpoints, handlers, validation, and data access. This approach reduces coupling and makes large codebases more navigable. Key Features in v3.2

Feature Slices by Default The toolkit encourages organizing code by feature (e.g., Orders/CreateOrder , Users/Login ) instead of by technical role. This aligns with vertical slice architecture and improves maintainability.

Mediator Pattern Integration Slic Toolkit includes a built-in, minimal mediator or seamless integration with popular libraries like MediatR. It supports request/response pipelines with behaviors for logging, validation, and caching.

Fluent Endpoint Registration v3.2 introduces a more intuitive API for registering minimal API endpoints. Endpoints can be discovered automatically via reflection, reducing boilerplate Program.cs code. slic toolkit v3.2

Enhanced Validation Pipelines Built-in support for FluentValidation v11+. Validators are automatically scoped to their respective slices and executed before request handlers, with standardized error responses.

Entity Framework Core Integration Simplifies DbContext configuration per slice, including automatic discovery of entity configurations ( IEntityTypeConfiguration<T> ). Supports DbContext pooling and interceptors.

Modularity & Lifecycle Hooks Each module or slice can implement interfaces like ISliceStartup to participate in application startup/shutdown (e.g., running migrations, seeding data, registering background services). Slic Toolkit v3

What’s New in Version 3.2

Performance Optimizations: Reduced reflection overhead during endpoint discovery and handler instantiation. Nullable Reference Types Support: Fully annotated for better static analysis and compile-time safety in .NET 6/7/8 projects. OpenAPI Documentation Improvements: Automatic generation of Swagger/OpenAPI metadata from endpoint request/response types. Asynchronous Initialization: Supports async startup tasks for each slice without blocking application startup. Refined Error Handling: Standardized problem details (RFC 7807) responses for validation and domain exceptions.

Typical Use Cases

Line-of-Business (LOB) Applications: ERP, CRM, invoicing systems where feature complexity grows over time. Microservices: Lightweight enough for small services but structured enough to prevent "spaghetti code." APIs Needing Strong Separation of Concerns: Teams migrating from MVC controllers to a more maintainable, handler-based approach.

Example: A Minimal Slice in v3.2 // Feature: Products/CreateProduct.cs public record CreateProductCommand(string Name, decimal Price) : IRequest<Product>; public class CreateProductHandler : IRequestHandler<CreateProductCommand, Product> { private readonly AppDbContext _db; public CreateProductHandler(AppDbContext db) => _db = db; public async Task<Product> Handle(CreateProductCommand request, CancellationToken ct) { var product = new Product { Name = request.Name, Price = request.Price }; _db.Products.Add(product); await _db.SaveChangesAsync(ct); return product; }