NetDevPack 9.0.0
dotnet add package NetDevPack --version 9.0.0
NuGet\Install-Package NetDevPack -Version 9.0.0
<PackageReference Include="NetDevPack" Version="9.0.0" />
<PackageVersion Include="NetDevPack" Version="9.0.0" />
<PackageReference Include="NetDevPack" />
paket add NetDevPack --version 9.0.0
#r "nuget: NetDevPack, 9.0.0"
#:package NetDevPack@9.0.0
#addin nuget:?package=NetDevPack&version=9.0.0
#tool nuget:?package=NetDevPack&version=9.0.0
<img src="https://repository-images.githubusercontent.com/268701472/8bf84980-a6ce-11ea-83da-e2133c5a3a7a" alt=".NET DevPack" width="300px" />
| Package | Version | Popularity |
|---|---|---|
NetDevPack |
What is the .NET DevPack?
NetDevPack is a comprehensive set of reusable classes and interfaces designed to improve development experience and productivity in .NET applications. It encapsulates best practices and common patterns such as Domain-Driven Design (DDD), CQRS, Validation, Notification, and Mediator.
Give a Star! ⭐
If you find this project useful, please give it a star! It helps us grow and improve the community.
Features
- ✅ Domain-driven design base classes and interfaces
- ✅ CQRS support via Mediator pattern
- ✅ FluentValidation integration
- ✅ Domain events and notifications handling
- ✅ Unit of Work and repository base contracts
Installation
Install via NuGet:
dotnet add package NetDevPack
Basic Usage
Domain Entity
using NetDevPack.Domain;
public class Customer : Entity
{
public string Name { get; private set; }
public Customer(Guid id, string name)
{
Id = id;
Name = name;
}
}
Repository Interface
using NetDevPack.Data;
public interface ICustomerRepository : IRepository<Customer>
{
Task<Customer> GetByName(string name);
}
Using the Mediator
public class CustomerCommandHandler : IRequestHandler<RegisterCustomerCommand, ValidationResult>
{
private readonly IMediatorHandler _mediator;
public CustomerCommandHandler(IMediatorHandler mediator)
{
_mediator = mediator;
}
public async Task<ValidationResult> Handle(RegisterCustomerCommand request, CancellationToken cancellationToken)
{
// Business logic
await _mediator.PublishEvent(new CustomerRegisteredEvent(...));
return new ValidationResult();
}
}
Fluent Validation
using FluentValidation;
public class CustomerValidator : AbstractValidator<Customer>
{
public CustomerValidator()
{
RuleFor(c => c.Name).NotEmpty();
}
}
Example
For a full implementation example, check Equinox Project
Compatibility
| NetDevPack | Target framework |
|---|---|
| 9.x | .NET 10 (LTS) |
| 8.x | .NET Standard 2.1 |
Upgrading from 8.x to 9.x
- The package now targets .NET 10 only. Stay on 8.x if you need .NET Standard 2.1.
- FluentValidation 12. See the FluentValidation 12 upgrade guide.
- NetDevPack.SimpleMediator 1.2:
IMediator,IRequest<T>,INotificationand the handler interfaces moved fromNetDevPack.SimpleMediator.Core.Interfacesto theNetDevPack.SimpleMediatornamespace. Replaceusing NetDevPack.SimpleMediator.Core.Interfaces;withusing NetDevPack.SimpleMediator;.
About
.NET DevPack was developed by Eduardo Pires under the MIT license.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- FluentValidation (>= 12.2.0)
- NetDevPack.SimpleMediator (>= 1.2.0)
NuGet packages (7)
Showing the top 5 NuGet packages that depend on NetDevPack:
| Package | Downloads |
|---|---|
|
DataC.CoreApi
Pacote core de desenvolvimento sistemas Data C |
|
|
CE.Core
Package Description |
|
|
NetDevPack.Brasil
.NET DevPack BR é uma coleção de utilidades como classes de documentos nacionais (CPF, CNPJ) com validação e classes de utilidade em geral. Desenvolvido para ser utilizado junto com o NetDevPack |
|
|
NetDevPackBr
.NET DevPack BR é uma coleção de utilidades como classes de documentos nacionais (CPF, CNPJ) com validação e classes de utilidade em geral. Desenvolvido para ser utilizado junto com o NetDevPack |
|
|
IC.DomainCore
Package Description |
GitHub repositories (3)
Showing the top 3 popular GitHub repositories that depend on NetDevPack:
| Repository | Stars |
|---|---|
|
EduardoPires/EquinoxProject
Web Application ASP.NET 9 using Clean Architecture, DDD, CQRS, Event Sourcing and a lot of good practices
|
|
|
desenvolvedor-io/dev-store
A microservices e-commerce reference application built with ASP.NET 9
|
|
|
NetDevPack/Security.Identity
.NET DevPack Identity is a set of common implementations to help you implementing Identity, Jwt, claims validation and another facilities
|
| Version | Downloads | Last Updated |
|---|---|---|
| 9.0.0 | 61 | 11/18/2026 |
| 8.0.2 | 36,438 | 4/8/2025 |
| 8.0.1 | 464 | 4/8/2025 |
| 8.0.0 | 461 | 4/8/2025 |
| 6.1.0 | 121,801 | 1/2/2023 |
| 6.0.1 | 77,261 | 3/22/2022 |
| 6.0.0 | 2,859 | 3/21/2022 |
| 5.3.2 | 9,882 | 11/16/2021 |
| 5.3.1 | 3,340 | 11/2/2021 |
| 5.3.0 | 4,640 | 8/30/2021 |
| 5.2.0 | 1,476 | 8/19/2021 |
| 5.1.1 | 5,451 | 8/13/2021 |
| 5.1.0 | 2,759 | 8/12/2021 |
| 5.0.4 | 1,323 | 8/12/2021 |
| 5.0.3 | 21,518 | 5/21/2021 |
| 5.0.2 | 2,182 | 5/21/2021 |