NetDevPack 8.0.2
dotnet add package NetDevPack --version 8.0.2
NuGet\Install-Package NetDevPack -Version 8.0.2
<PackageReference Include="NetDevPack" Version="8.0.2" />
<PackageVersion Include="NetDevPack" Version="8.0.2" />
<PackageReference Include="NetDevPack" />
paket add NetDevPack --version 8.0.2
#r "nuget: NetDevPack, 8.0.2"
#addin nuget:?package=NetDevPack&version=8.0.2
#tool nuget:?package=NetDevPack&version=8.0.2
<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
Supports:
- ✅ .NET Standard 2.1
- ✅ .NET 5 through 9 (including latest versions)
- ⚠️ Legacy support for .NET Core 3.1 and older (with limitations)
About
.NET DevPack was developed by Eduardo Pires under the MIT license.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- FluentValidation (>= 11.11.0)
- NetDevPack.SimpleMediator (>= 1.1.0)
NuGet packages (6)
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 6
|
|
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 |
---|---|---|
8.0.2 | 1,598 | 4/8/2025 |
8.0.1 | 164 | 4/8/2025 |
8.0.0 | 152 | 4/8/2025 |
6.1.0 | 56,739 | 1/2/2023 |
6.0.1 | 54,591 | 3/22/2022 |
6.0.0 | 2,219 | 3/21/2022 |
5.3.2 | 9,285 | 11/16/2021 |
5.3.1 | 3,085 | 11/2/2021 |
5.3.0 | 4,062 | 8/30/2021 |
5.2.0 | 1,245 | 8/19/2021 |
5.1.1 | 4,823 | 8/13/2021 |
5.1.0 | 2,510 | 8/12/2021 |
5.0.4 | 1,094 | 8/12/2021 |
5.0.3 | 20,912 | 5/21/2021 |
5.0.2 | 1,631 | 5/21/2021 |
1.1.1 | 14,063 | 4/7/2021 |
1.1.0 | 104,967 | 6/12/2020 |
1.0.4 | 12,395 | 6/5/2020 |