RecurPixel.EasyMessages.AspNetCore 0.1.0

Prefix Reserved
Additional Details

Use RecurPixel.EasyMessages v1.0.0 instead. See migration guide: https://github.com/RecurPixel/RecurPixel.EasyMessages

dotnet add package RecurPixel.EasyMessages.AspNetCore --version 0.1.0
                    
NuGet\Install-Package RecurPixel.EasyMessages.AspNetCore -Version 0.1.0
                    
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="RecurPixel.EasyMessages.AspNetCore" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RecurPixel.EasyMessages.AspNetCore" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="RecurPixel.EasyMessages.AspNetCore" />
                    
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 RecurPixel.EasyMessages.AspNetCore --version 0.1.0
                    
#r "nuget: RecurPixel.EasyMessages.AspNetCore, 0.1.0"
                    
#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 RecurPixel.EasyMessages.AspNetCore@0.1.0
                    
#: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=RecurPixel.EasyMessages.AspNetCore&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=RecurPixel.EasyMessages.AspNetCore&version=0.1.0
                    
Install as a Cake Tool

RecurPixel.EasyMessages.AspNetCore

⚠️ DEPRECATED — This package is no longer maintained.

Use RecurPixel.EasyMessages (Core) v1.0.0 instead. The Core package works in all .NET applications including ASP.NET Core web APIs.


Migration Guide

# Remove deprecated package
dotnet remove package RecurPixel.EasyMessages.AspNetCore

# Install Core
dotnet add package RecurPixel.EasyMessages --version 1.0.0

Replace each call

Before (AspNetCore) After (Core only)
Msg.Auth.LoginFailed().ToApiResponse() var m = Msg.Auth.LoginFailed(); return StatusCode(m.HttpStatusCode ?? 401, m.ToJsonObject());
Msg.Crud.Created("User").ToMinimalApiResult() var m = Msg.Crud.Created("User"); return Results.Json(m.ToJsonObject(), statusCode: m.HttpStatusCode ?? 200);
builder.Services.AddEasyMessages() Remove from Program.cs — not needed
.Log(_logger) Same — .Log() is now in Core

Example before

// Program.cs
builder.Services.AddEasyMessages();

// Controller
public IActionResult Login(LoginDto dto)
{
    if (!_authService.Validate(dto))
        return Msg.Auth.LoginFailed().Log(_logger).ToApiResponse();

    return Msg.Auth.LoginSuccess().WithData(new { token }).ToApiResponse();
}

Example after

// Program.cs — no AddEasyMessages() call needed

// Controller
public IActionResult Login(LoginDto dto)
{
    if (!_authService.Validate(dto))
    {
        var msg = Msg.Auth.LoginFailed().Log(_logger);
        return StatusCode(msg.HttpStatusCode ?? 401, msg.ToJsonObject());
    }

    var success = Msg.Auth.LoginSuccess().WithData(new { token });
    return StatusCode(success.HttpStatusCode ?? 200, success.ToJsonObject());
}

Why Was This Deprecated?

Beta feedback showed 6:1 adoption of Core over AspNetCore. The Core package already produces JSON, has HTTP status codes on every message, and the .Log(ILogger) integration — everything needed for web APIs.


Documentation


MIT License — RecurPixel

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

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0 101 5/10/2026 0.1.0 is deprecated.
0.1.0-beta.1 96 1/10/2026 0.1.0-beta.1 is deprecated.

v0.1.0 (Final) - This package is deprecated. Use RecurPixel.EasyMessages v1.0.0 instead.
     See migration guide: https://github.com/RecurPixel/RecurPixel.EasyMessages