MSMapper.Core
0.1.0-alpha
dotnet add package MSMapper.Core --version 0.1.0-alpha
NuGet\Install-Package MSMapper.Core -Version 0.1.0-alpha
<PackageReference Include="MSMapper.Core" Version="0.1.0-alpha" />
<PackageVersion Include="MSMapper.Core" Version="0.1.0-alpha" />
<PackageReference Include="MSMapper.Core" />
paket add MSMapper.Core --version 0.1.0-alpha
#r "nuget: MSMapper.Core, 0.1.0-alpha"
#:package MSMapper.Core@0.1.0-alpha
#addin nuget:?package=MSMapper.Core&version=0.1.0-alpha&prerelease
#tool nuget:?package=MSMapper.Core&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
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages (5)
Showing the top 5 NuGet packages that depend on MSMapper.Core:
| Package | Downloads |
|---|---|
|
MSMapper.Expressions
Expression-compiled mapping engine for MSMapper. |
|
|
MSMapper.Reflection
Reflection fallback mapping engine for MSMapper. |
|
|
MSMapper.Configuration
Fluent configuration API for MSMapper. |
|
|
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 | 93 | 7/9/2026 |