AutoMapper 15.1.4

AutoMapper

CI NuGet Documentation Status

What is AutoMapper?

AutoMapper is a simple little library built to solve a deceptively complex problem - getting rid of code that mapped one object to another. This type of code is rather dreary and boring to write, so why not invent a tool to do it for us?

This is the main repository for AutoMapper, but there's more:

How do I get started?

First, configure AutoMapper to know what types you want to map, in the startup of your application:

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

// or more typically, using IServiceCollection
services.AddAutoMapper(cfg => 
{
    cfg.CreateMap<Foo, FooDto>();
    cfg.CreateMap<Bar, BarDto>();
});

// only during development, validate your mappings; remove it before release
#if DEBUG
configuration.AssertConfigurationIsValid();
#endif
// use DI (http://docs.automapper.io/en/latest/Dependency-injection.html) or create the mapper yourself
var mapper = configuration.CreateMapper();

Then in your application code, execute the mappings:

var fooDto = mapper.Map<FooDto>(foo);
var barDto = mapper.Map<BarDto>(bar);

Check out the getting started guide. When you're done there, the wiki goes in to the nitty-gritty details. If you have questions, you can post them to Stack Overflow.

Where can I get it?

First, install NuGet. Then, install AutoMapper from the package manager console:

PM> Install-Package AutoMapper

Or from the .NET CLI as:

dotnet add package AutoMapper

Do you have an issue?

You might want to know exactly what your mapping does at runtime.

If you're still running into problems, file an issue above.

If you are a paying customer, you can contact support via your account.

How do I set the license key?

You can set the license key when registering AutoMapper:

services.AddAutoMapper(cfg => 
{
    cfg.LicenseKey = "<license key here>";
})

You can register for your license key at AutoMapper.io

Showing the top 20 packages that depend on AutoMapper.

Packages Downloads
KubernetesClient
Client library for the Kubernetes open source container orchestrator.
56
KubernetesClient.Models
Client library for the Kubernetes open source container orchestrator.
56
KubernetesClient
Client library for the Kubernetes open source container orchestrator.
55
KubernetesClient
Client library for the Kubernetes open source container orchestrator.
54
KubernetesClient
Client library for the Kubernetes open source container orchestrator.
53
KubernetesClient
Client library for the Kubernetes open source container orchestrator.
52
KubernetesClient
Client library for the Kubernetes open source container orchestrator.
51
KubernetesClient.Models
Client library for the Kubernetes open source container orchestrator.
51

Version Downloads Last updated
16.3.0 2 11/5/2026
16.2.0 40 7/3/2026
16.1.1 43 3/14/2026
16.1.0 42 3/11/2026
16.0.0 47 12/11/2025
16.0.0-beta-1 44 12/12/2025
15.1.4 2 11/5/2026
15.1.3 38 3/20/2026
15.1.2 39 3/17/2026
15.1.1 31 3/17/2026
15.1.0 46 12/11/2025
15.0.1 49 12/11/2025
15.0.0 41 1/4/2026
14.0.0 46 12/11/2025
13.0.1 38 12/11/2025
13.0.0 36 1/4/2026
12.0.1 48 12/11/2025
12.0.0 48 12/11/2025
11.0.1 40 12/11/2025
11.0.0 33 12/11/2025
10.1.1 41 12/11/2025
10.1.0 46 1/4/2026
10.0.0 49 12/11/2025
9.0.0 42 12/12/2025
8.1.1 49 12/12/2025
8.1.0 56 12/12/2025
8.0.0 52 12/12/2025
7.0.1 47 12/12/2025
7.0.0 47 1/4/2026
7.0.0-alpha-0001 44 12/12/2025
6.2.2 55 12/12/2025
6.2.1 49 12/12/2025
6.2.0 45 12/12/2025
6.1.1 44 12/12/2025
6.1.0 42 12/12/2025
6.0.2 41 12/12/2025
6.0.1 46 1/4/2026
6.0.0 41 1/4/2026
5.2.0 44 12/12/2025
5.1.1 46 12/12/2025
5.1.0 44 1/4/2026
5.0.2 46 12/12/2025
5.0.1 44 1/4/2026
5.0.0 41 1/4/2026
5.0.0-beta-1 52 12/12/2025
4.2.1 47 12/12/2025
4.2.0 46 12/11/2025
4.1.1 47 12/12/2025
4.1.0 43 1/4/2026
4.0.4 55 12/12/2025
4.0.3 47 1/4/2026
4.0.2 46 1/4/2026
4.0.1 41 1/4/2026
4.0.0 47 1/4/2026
4.0.0-ci1061 45 1/4/2026
4.0.0-ci1057 52 1/4/2026
4.0.0-ci1056 47 1/4/2026
4.0.0-ci1054 52 1/4/2026
4.0.0-ci1053 45 1/4/2026
4.0.0-ci1052 50 1/4/2026
4.0.0-ci1051 43 1/4/2026
4.0.0-ci1050 37 1/4/2026
4.0.0-ci1049 48 1/4/2026
4.0.0-ci1046 50 1/4/2026
4.0.0-ci1038 49 1/4/2026
4.0.0-ci1036 49 1/4/2026
4.0.0-ci1034 47 1/4/2026
4.0.0-ci1032 51 1/4/2026
4.0.0-ci1031 48 1/4/2026
4.0.0-ci1026 50 1/4/2026
4.0.0-ci1021 49 1/4/2026
4.0.0-ci1020 48 1/4/2026
4.0.0-ci1019 40 1/4/2026
4.0.0-ci1018 42 1/4/2026
4.0.0-ci1017 52 1/4/2026
4.0.0-ci1015 47 1/4/2026
4.0.0-ci1014 42 1/4/2026
4.0.0-ci1007 42 1/4/2026
4.0.0-ci1006 45 1/4/2026
4.0.0-ci1004 43 1/4/2026
4.0.0-ci1002 55 1/4/2026
4.0.0-alpha1 41 12/11/2025
3.3.1 45 12/11/2025
3.3.0 59 12/12/2025
3.3.0-ci1033 47 1/4/2026
3.3.0-ci1032 48 1/4/2026
3.3.0-ci1031 49 1/4/2026
3.3.0-ci1030 41 1/4/2026
3.3.0-ci1029 47 1/4/2026
3.3.0-ci1028 46 1/4/2026
3.3.0-ci1027 39 1/4/2026
3.3.0-ci1026 47 1/4/2026
3.3.0-ci1025 43 1/4/2026
3.3.0-ci1024 50 1/4/2026
3.3.0-ci1023 39 1/4/2026
3.3.0-ci1022 44 1/4/2026
3.3.0-ci1021 45 1/4/2026
3.3.0-ci1020 41 1/4/2026
3.3.0-ci1019 48 1/4/2026
3.3.0-ci1018 37 1/4/2026
3.3.0-ci1017 47 1/4/2026
3.3.0-ci1016 49 1/4/2026
3.3.0-ci1009 52 1/4/2026
3.3.0-ci1008 46 1/4/2026
3.3.0-ci1007 42 1/4/2026
3.3.0-ci1006 45 1/4/2026
3.3.0-ci1005 46 1/4/2026
3.3.0-ci1004 49 1/4/2026
3.3.0-ci1003 41 1/4/2026
3.3.0-ci1002 58 1/4/2026
3.3.0-ci1001 42 1/4/2026
3.3.0-ci1000 47 1/4/2026
3.2.1 45 12/12/2025
3.2.1-ci1002 49 1/4/2026
3.2.1-ci1001 42 1/4/2026
3.2.1-ci1000 34 1/4/2026
3.2.0 40 1/4/2026
3.2.0-ci1043 42 1/4/2026
3.2.0-ci1042 41 1/4/2026
3.2.0-ci1041 40 1/4/2026
3.2.0-ci1040 41 1/4/2026
3.2.0-ci1039 45 1/4/2026
3.2.0-ci1038 46 1/4/2026
3.2.0-ci1037 44 1/4/2026
3.2.0-ci1036 42 1/4/2026
3.2.0-ci1035 45 1/4/2026
3.2.0-ci1034 39 1/4/2026
3.2.0-ci1033 46 1/4/2026
3.2.0-ci1030 42 1/4/2026
3.2.0-ci1029 44 1/4/2026
3.2.0-ci1028 42 1/4/2026
3.2.0-ci1027 47 1/4/2026
3.2.0-ci1026 40 1/4/2026
3.2.0-ci1025 45 1/4/2026
3.2.0-ci1024 44 1/4/2026
3.2.0-ci1023 44 1/4/2026
3.2.0-ci1022 39 1/4/2026
3.2.0-ci1021 44 1/4/2026
3.2.0-ci1017 43 1/4/2026
3.2.0-ci1016 42 1/4/2026
3.2.0-ci1015 49 1/4/2026
3.2.0-ci1014 40 1/4/2026
3.2.0-ci1011 42 1/4/2026
3.2.0-ci1010 39 1/4/2026
3.2.0-ci1009 51 1/4/2026
3.2.0-ci1008 38 1/4/2026
3.2.0-ci1005 50 1/4/2026
3.2.0-ci1004 54 1/4/2026
3.2.0-ci1003 44 1/4/2026
3.2.0-ci1002 39 1/4/2026
3.2.0-ci1001 40 1/4/2026
3.2.0-ci1000 40 1/4/2026
3.1.1 43 12/12/2025
3.1.1-ci1003 41 1/4/2026
3.1.1-ci1000 43 1/4/2026
3.1.0 49 12/12/2025
3.1.0-ci1058 43 1/4/2026
3.1.0-ci1056 54 1/4/2026
3.1.0-ci1053 49 1/4/2026
3.1.0-ci1051 45 1/4/2026
3.1.0-ci1050 43 1/4/2026
3.1.0-ci1049 46 1/4/2026
3.1.0-ci1048 46 1/4/2026
3.1.0-ci1047 41 1/4/2026
3.1.0-ci1046 54 1/4/2026
3.1.0-ci1045 43 1/4/2026
3.1.0-ci1044 46 1/4/2026
3.1.0-ci1043 44 1/4/2026
3.1.0-ci1038 43 1/4/2026
3.1.0-ci1037 47 1/4/2026
3.1.0-ci1036 45 1/4/2026
3.1.0-ci1035 48 1/4/2026
3.1.0-ci1034 45 1/4/2026
3.1.0-ci1033 48 1/4/2026
3.1.0-ci1032 41 1/4/2026
3.1.0-ci1027 44 1/4/2026
3.1.0-ci1026 54 1/4/2026
3.1.0-ci1024 57 1/4/2026
3.1.0-ci1023 48 1/4/2026
3.1.0-ci1022 48 1/4/2026
3.1.0-ci1021 42 1/4/2026
3.1.0-ci1020 48 1/4/2026
3.1.0-ci1019 45 1/4/2026
3.1.0-ci1018 49 1/4/2026
3.1.0-ci1017 48 1/4/2026
3.1.0-ci1016 51 1/4/2026
3.1.0-ci1014 40 1/4/2026
3.0.0 46 12/12/2025
3.0.0-ci1053 47 1/4/2026
3.0.0-ci1043 46 1/4/2026
3.0.0-ci1042 53 1/4/2026
3.0.0-ci1041 51 1/4/2026
3.0.0-ci1040 45 1/4/2026
3.0.0-ci1039 52 1/4/2026
3.0.0-ci1038 43 1/4/2026
3.0.0-ci1037 50 1/4/2026
3.0.0-ci1036 45 1/4/2026
3.0.0-ci1035 45 1/4/2026
3.0.0-ci1034 43 1/4/2026
3.0.0-ci1033 45 1/4/2026
3.0.0-ci1032 45 1/4/2026
3.0.0-ci1031 46 1/4/2026
3.0.0-ci1029 45 1/4/2026
3.0.0-ci1028 45 1/4/2026
3.0.0-ci1026 44 1/4/2026
2.2.25-ci 40 1/4/2026
2.2.24-ci 43 1/4/2026
2.2.1 45 12/12/2025
2.2.1-ci9006 43 1/4/2026
2.2.1-ci9005 39 1/4/2026
2.2.1-ci9004 40 1/4/2026
2.2.1-ci9003 43 1/4/2026
2.2.1-ci9002 45 1/4/2026
2.2.1-ci9001 44 1/4/2026
2.2.1-ci9000 46 1/4/2026
2.2.1-ci9 39 1/4/2026
2.2.1-ci8 42 1/4/2026
2.2.1-ci7 41 1/4/2026
2.2.1-ci6 49 1/4/2026
2.2.1-ci5 39 1/4/2026
2.2.1-ci4 39 1/4/2026
2.2.1-ci17 47 1/4/2026
2.2.1-ci16 42 1/4/2026
2.2.1-ci11 38 1/4/2026
2.2.1-ci1000 44 1/4/2026
2.2.1-ci10 51 1/4/2026
2.2.0 40 12/12/2025
2.1.267 55 12/11/2025
2.1.266 41 12/11/2025
2.1.265 46 12/11/2025
2.1.262 48 12/11/2025
2.1.1 46 12/12/2025
2.0.0 45 12/12/2025
1.1.2 45 12/12/2025
1.1.1 41 1/4/2026
1.1.0.118 49 12/11/2025