MSMapper.Reflection 0.1.0-alpha

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

MSMapper

CI NuGet License: MIT

MSMapper is a production-grade, high-performance object mapping library for modern .NET. It combines AutoMapper's expressive fluent configuration with compile-time safety and near hand-written performance via expression compilation and incremental source generation.

One configuration model. Three execution engines. Zero surprises in production.

Features

  • Convention-based mapping between any classes
  • Fluent configuration API (CreateMap, ForMember, ReverseMap, etc.)
  • Triple execution engines: Expression, Reflection, and Source Generated
  • IQueryable projection (ProjectTo) with EF Core translation
  • Roslyn analyzers for missing mappings and type mismatches
  • ASP.NET Core DI integration (AddMapper)
  • Polymorphic mapping, circular reference tracking, flattening
  • NativeAOT compatible (Generated mode)

Quick Start

dotnet add package MSMapper
using MSMapper;

var config = MapperConfiguration.Create(cfg =>
{
    cfg.CreateMap<User, UserDto>();
    cfg.CreateMap<Product, ProductDto>()
        .ForMember(d => d.Name, s => s.Title)
        .Ignore(d => d.CreatedAt);
});

config.Validate();
var mapper = config.CreateMapper();
var dto = mapper.Map<UserDto>(user);

ASP.NET Core

builder.Services.AddMapper(options =>
{
    options.AddMaps(typeof(Program).Assembly);
    options.ValidateOnStartup = true;
});

Packages

Package Description
MSMapper Metapackage (recommended)
MSMapper.Core Core abstractions
MSMapper.Configuration Fluent configuration API
MSMapper.Expressions Expression-compiled engine
MSMapper.Reflection Reflection fallback engine
MSMapper.SourceGenerator Compile-time code generation
MSMapper.Analyzers Roslyn analyzers
MSMapper.DependencyInjection DI extensions

Documentation

See docs/ for getting started guides, advanced mapping, performance tuning, and migration from AutoMapper.

License

MIT — see LICENSE.

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 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 (2)

Showing the top 2 NuGet packages that depend on MSMapper.Reflection:

Package Downloads
MSMapper.DependencyInjection

Dependency injection extensions for MSMapper.

MSMapper

High-performance object mapping library for modern .NET (metapackage).

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-alpha 79 7/9/2026