Mammoth.LiteMapper.Generator
2.0.0
See the version list below for details.
dotnet add package Mammoth.LiteMapper.Generator --version 2.0.0
NuGet\Install-Package Mammoth.LiteMapper.Generator -Version 2.0.0
<PackageReference Include="Mammoth.LiteMapper.Generator" Version="2.0.0" />
<PackageVersion Include="Mammoth.LiteMapper.Generator" Version="2.0.0" />
<PackageReference Include="Mammoth.LiteMapper.Generator" />
paket add Mammoth.LiteMapper.Generator --version 2.0.0
#r "nuget: Mammoth.LiteMapper.Generator, 2.0.0"
#:package Mammoth.LiteMapper.Generator@2.0.0
#addin nuget:?package=Mammoth.LiteMapper.Generator&version=2.0.0
#tool nuget:?package=Mammoth.LiteMapper.Generator&version=2.0.0
Mammoth.LiteMapper
Mammoth.LiteMapper is a convention-first, compile-time object mapping library for C#.
Consumers declare partial mapping methods on classes marked with [LiteMapper]. A Roslyn incremental source generator emits direct C# implementations using constructors, assignments, loops, casts, and ordinary method calls. LiteMapper is not a runtime mapping container and does not provide runtime mapper registration, assembly scanning, reflection fallback, or dynamic dispatch.
Compilation Status
Quickstart
Install the primary package:
<PackageReference Include="Mammoth.LiteMapper" />
Declare a mapper:
using Mammoth.LiteMapper;
[LiteMapper]
public static partial class CustomerMapper
{
public static partial CustomerDto Map(Customer source);
}
Use the generated method like ordinary C#:
CustomerDto dto = CustomerMapper.Map(customer);
See the compiling samples under samples/ for static mappers, instance mappers, collections, recursive mappings, and ASP.NET Core usage.
Documentation
- SPECIFICATION.md is the sole authoritative product contract.
- USAGE.md is the usage guide and must stay synchronized with the specification, samples, tests, and other project documents.
Agent skill
The mammoth-litemapper skill provides consumer mapping guidance for compatible coding agents using the Skills CLI.
Once this skill is published on the repository's default branch, install it from your consuming project:
npx skills add PrimordialCode/Mammoth.LiteMapper --skill mammoth-litemapper
Append --agent codex to target Codex or --global for user-level installation. To preview this checkout's discoverable skills without installing, run npx skills add . --list from the repository root. The skill contains its own supporting reference; consumers do not need a LiteMapper source checkout. Local validation does not establish a skills.sh directory listing.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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 was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- No dependencies.
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 |
|---|---|---|
| 3.0.0 | 76 | 9/17/2026 |
| 3.0.0-beta.2 | 44 | 9/17/2026 |
| 3.0.0-beta.1 | 51 | 9/17/2026 |
| 2.0.0 | 85 | 9/10/2026 |
| 2.0.0-beta.1 | 52 | 9/10/2026 |
| 1.0.0 | 118 | 6/22/2026 |
| 1.0.0-beta.2 | 83 | 6/22/2026 |
| 1.0.0-beta.1 | 72 | 6/19/2026 |