MSMapper.Reflection
0.1.0-alpha
dotnet add package MSMapper.Reflection --version 0.1.0-alpha
NuGet\Install-Package MSMapper.Reflection -Version 0.1.0-alpha
<PackageReference Include="MSMapper.Reflection" Version="0.1.0-alpha" />
<PackageVersion Include="MSMapper.Reflection" Version="0.1.0-alpha" />
<PackageReference Include="MSMapper.Reflection" />
paket add MSMapper.Reflection --version 0.1.0-alpha
#r "nuget: MSMapper.Reflection, 0.1.0-alpha"
#:package MSMapper.Reflection@0.1.0-alpha
#addin nuget:?package=MSMapper.Reflection&version=0.1.0-alpha&prerelease
#tool nuget:?package=MSMapper.Reflection&version=0.1.0-alpha&prerelease
MSMapper
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
IQueryableprojection (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 | Versions 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. |
-
net8.0
- MSMapper.Core (>= 0.1.0-alpha)
-
net9.0
- MSMapper.Core (>= 0.1.0-alpha)
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 |