MSMapper 0.1.0-alpha
This is a prerelease version of MSMapper.
dotnet add package MSMapper --version 0.1.0-alpha
NuGet\Install-Package MSMapper -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" 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" Version="0.1.0-alpha" />
<PackageReference Include="MSMapper" />
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 --version 0.1.0-alpha
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MSMapper, 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@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&version=0.1.0-alpha&prerelease
#tool nuget:?package=MSMapper&version=0.1.0-alpha&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- MSMapper.Configuration (>= 0.1.0-alpha)
- MSMapper.Core (>= 0.1.0-alpha)
- MSMapper.DependencyInjection (>= 0.1.0-alpha)
- MSMapper.Expressions (>= 0.1.0-alpha)
- MSMapper.Reflection (>= 0.1.0-alpha)
-
net9.0
- MSMapper.Configuration (>= 0.1.0-alpha)
- MSMapper.Core (>= 0.1.0-alpha)
- MSMapper.DependencyInjection (>= 0.1.0-alpha)
- MSMapper.Expressions (>= 0.1.0-alpha)
- MSMapper.Reflection (>= 0.1.0-alpha)
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-alpha | 71 | 7/9/2026 |