Nera.Lib.Core 1.0.6

dotnet add package Nera.Lib.Core --version 1.0.6
                    
NuGet\Install-Package Nera.Lib.Core -Version 1.0.6
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Nera.Lib.Core" Version="1.0.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Nera.Lib.Core" Version="1.0.6" />
                    
Directory.Packages.props
<PackageReference Include="Nera.Lib.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Nera.Lib.Core --version 1.0.6
                    
#r "nuget: Nera.Lib.Core, 1.0.6"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Nera.Lib.Core@1.0.6
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Nera.Lib.Core&version=1.0.6
                    
Install as a Cake Addin
#tool nuget:?package=Nera.Lib.Core&version=1.0.6
                    
Install as a Cake Tool

Nera.Lib.Core

A comprehensive .NET 9 library providing core utilities, extensions, validation, and common components for Nera applications.

📦 Installation

dotnet add package Nera.Lib.Core

🚀 Features

  • Extensions: Useful extension methods for common types
  • Validation: FluentValidation integration and common validation rules
  • CQRS: MediatR integration and command/query patterns
  • Logging: Serilog configuration and extensions
  • Security: JWT authentication and authorization helpers
  • Error Handling: Global exception handling and error responses
  • Pagination: Built-in pagination support
  • Results: Method result patterns for better error handling

📚 Usage

Basic Setup

using Nera.Lib.Core;

// Add services to DI container
builder.Services.AddNeraCore();

// Configure logging
builder.Host.UseNeraLogging();

Validation

using Nera.Lib.Core.Validation;

public class UserValidator : AbstractValidator<User>
{
    public UserValidator()
    {
        RuleFor(x => x.Email).NotEmpty().EmailAddress();
        RuleFor(x => x.Password).MinimumLength(8);
    }
}

Result Patterns

using Nera.Lib.Core.Results;

public async Task<MethodResult<User>> GetUserAsync(int id)
{
    var user = await _repository.GetByIdAsync(id);
    return user != null 
        ? MethodResult<User>.Success(user)
        : MethodResult<User>.Failure("User not found");
}

🏗️ Requirements

  • .NET 9.0 or later
  • ASP.NET Core 9.0 (for web features)

📖 Documentation

For detailed documentation and examples, visit our Wiki.

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🏢 About

Developed by Nextera Systems for building robust .NET applications.


Version: 1.0.0
Target Framework: .NET 9.0
Repository: https://github.com/nextera-systems/nera-lib-core

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on Nera.Lib.Core:

Package Downloads
Nera.Lib.Web

Web models, business rules, aggregates, value objects, and domain services for Nera applications

Nera.Lib.Domain

Domain models, business rules, aggregates, value objects, and domain services for Nera applications

Nera.Lib.Infrastructure

Domain models, business rules, aggregates, value objects, and domain services for Nera applications

Nera.Lib.Gateway

Kong API Gateway integration library for Nextera Systems microservices, providing service registration, routing, authentication, rate limiting, and other gateway features.

Nera.Lib.Database

Database access layer with Entity Framework Core, Repository pattern, Specification pattern, and advanced querying capabilities for Nera applications

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.6 94 8/3/2025
1.0.5 33 8/2/2025
1.0.4 19 8/2/2025
1.0.3 29 8/1/2025
1.0.2 89 7/31/2025
1.0.1 117 7/27/2025
1.0.0 92 7/27/2025