Klausmd5.AutoMapperLegacy 14.2.0

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

Klausmd5.AutoMapperLegacy

Klausmd5.AutoMapperLegacy is a maintenance fork of the AutoMapper 14.x codebase.

The goal of this repository is narrow:

  • keep the AutoMapper 14 API surface usable for existing applications
  • carry targeted fixes that are needed after the original 14.x line stopped moving
  • publish a distinct forked NuGet package instead of shipping under the upstream package identity

This fork currently includes:

  • custom security maintenance for deep self-referential mapping graphs
  • .NET 10 targeting for the library, tests, benchmark project, and sample app
  • GitHub-based tag release packaging

Package identity

The published NuGet package is:

Klausmd5.AutoMapperLegacy

The assembly name remains AutoMapper for consumer compatibility.

Project status

This is not the upstream AutoMapper repository.

  • upstream project: AutoMapper/AutoMapper
  • fork maintainer: Klausmd5
  • fork repository: https://github.com/Klausmd5/AutoMapper

Changes in this repository are maintained independently and may intentionally diverge from upstream behavior, tooling, packaging, and release process.

Installation

Package Manager:

Install-Package Klausmd5.AutoMapperLegacy

.NET CLI:

dotnet add package Klausmd5.AutoMapperLegacy

Usage

Basic configuration remains the familiar AutoMapper setup:

var configuration = new MapperConfiguration(cfg =>
{
    cfg.CreateMap<Foo, FooDto>();
    cfg.CreateMap<Bar, BarDto>();
});

#if DEBUG
configuration.AssertConfigurationIsValid();
#endif

var mapper = configuration.CreateMapper();
var dto = mapper.Map<FooDto>(foo);

Build

Local build:

dotnet restore AutoMapper.sln
dotnet build AutoMapper.sln -c Release
dotnet test src/UnitTests/AutoMapper.UnitTests.csproj -c Release
dotnet test src/AutoMapper.DI.Tests/AutoMapper.DI.Tests.csproj -c Release
dotnet test src/IntegrationTests/AutoMapper.IntegrationTests.csproj -c Release

Release flow

Tagged releases are built by GitHub Actions.

  • create a tag in the format vX.Y.Z
  • push the tag
  • the workflow restores, builds, packs, uploads artifacts, and creates a GitHub release

License

This fork is distributed under the MIT license inherited from the 14.x codebase in this repository. See LICENSE.txt.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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 (1)

Showing the top 1 NuGet packages that depend on Klausmd5.AutoMapperLegacy:

Package Downloads
Klausmd5.AutoController

Auto-generated ASP.NET Core CRUD and service controllers for .NET 10 with EF Core, Gridify, Swagger, and Klausmd5.AutoMapperLegacy.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
14.2.0 1,114 3/16/2026