AutoMapper 16.0.0-beta-1

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.
25
KubernetesClient.Models
Client library for the Kubernetes open source container orchestrator.
25
Volo.Abp.AutoMapper
Package Description
24
KubernetesClient.Models
Client library for the Kubernetes open source container orchestrator.
23
Volo.Abp.AutoMapper
Package Description
23
KubernetesClient
Client library for the Kubernetes open source container orchestrator.
23
KubernetesClient
Client library for the Kubernetes open source container orchestrator.
22
Volo.Abp.AutoMapper
Package Description
22
KubernetesClient.Models
Client library for the Kubernetes open source container orchestrator.
21
KubernetesClient
Client library for the Kubernetes open source container orchestrator.
21

Version Downloads Last updated
16.1.1 6 3/14/2026
16.1.0 6 3/11/2026
16.0.0 21 12/11/2025
16.0.0-beta-1 24 12/12/2025
15.1.2 0 3/17/2026
15.1.1 0 3/15/2026
15.1.0 18 12/11/2025
15.0.1 21 12/11/2025
15.0.0 10 1/4/2026
14.0.0 19 12/11/2025
13.0.1 14 12/11/2025
13.0.0 8 1/4/2026
12.0.1 19 12/11/2025
12.0.0 22 12/11/2025
11.0.1 17 12/11/2025
11.0.0 17 12/11/2025
10.1.1 17 12/11/2025
10.1.0 12 1/4/2026
10.0.0 22 12/11/2025
9.0.0 18 12/12/2025
8.1.1 21 12/12/2025
8.1.0 28 12/12/2025
8.0.0 24 12/12/2025
7.0.1 20 12/12/2025
7.0.0 11 1/4/2026
7.0.0-alpha-0001 20 12/12/2025
6.2.2 23 12/12/2025
6.2.1 23 12/12/2025
6.2.0 18 12/12/2025
6.1.1 18 12/12/2025
6.1.0 18 12/12/2025
6.0.2 16 12/12/2025
6.0.1 12 1/4/2026
6.0.0 10 1/4/2026
5.2.0 23 12/12/2025
5.1.1 19 12/12/2025
5.1.0 9 1/4/2026
5.0.2 18 12/12/2025
5.0.1 10 1/4/2026
5.0.0 9 1/4/2026
5.0.0-beta-1 22 12/12/2025
4.2.1 22 12/12/2025
4.2.0 19 12/11/2025
4.1.1 19 12/12/2025
4.1.0 10 1/4/2026
4.0.4 20 12/12/2025
4.0.3 13 1/4/2026
4.0.2 10 1/4/2026
4.0.1 9 1/4/2026
4.0.0 7 1/4/2026
4.0.0-ci1061 7 1/4/2026
4.0.0-ci1057 11 1/4/2026
4.0.0-ci1056 9 1/4/2026
4.0.0-ci1054 9 1/4/2026
4.0.0-ci1053 13 1/4/2026
4.0.0-ci1052 8 1/4/2026
4.0.0-ci1051 9 1/4/2026
4.0.0-ci1050 8 1/4/2026
4.0.0-ci1049 11 1/4/2026
4.0.0-ci1046 13 1/4/2026
4.0.0-ci1038 8 1/4/2026
4.0.0-ci1036 10 1/4/2026
4.0.0-ci1034 10 1/4/2026
4.0.0-ci1032 10 1/4/2026
4.0.0-ci1031 7 1/4/2026
4.0.0-ci1026 11 1/4/2026
4.0.0-ci1021 10 1/4/2026
4.0.0-ci1020 8 1/4/2026
4.0.0-ci1019 10 1/4/2026
4.0.0-ci1018 9 1/4/2026
4.0.0-ci1017 9 1/4/2026
4.0.0-ci1015 13 1/4/2026
4.0.0-ci1014 9 1/4/2026
4.0.0-ci1007 12 1/4/2026
4.0.0-ci1006 10 1/4/2026
4.0.0-ci1004 8 1/4/2026
4.0.0-ci1002 19 1/4/2026
4.0.0-alpha1 20 12/11/2025
3.3.1 20 12/11/2025
3.3.0 25 12/12/2025
3.3.0-ci1033 9 1/4/2026
3.3.0-ci1032 10 1/4/2026
3.3.0-ci1031 9 1/4/2026
3.3.0-ci1030 8 1/4/2026
3.3.0-ci1029 9 1/4/2026
3.3.0-ci1028 9 1/4/2026
3.3.0-ci1027 8 1/4/2026
3.3.0-ci1026 9 1/4/2026
3.3.0-ci1025 10 1/4/2026
3.3.0-ci1024 9 1/4/2026
3.3.0-ci1023 7 1/4/2026
3.3.0-ci1022 9 1/4/2026
3.3.0-ci1021 12 1/4/2026
3.3.0-ci1020 9 1/4/2026
3.3.0-ci1019 7 1/4/2026
3.3.0-ci1018 8 1/4/2026
3.3.0-ci1017 11 1/4/2026
3.3.0-ci1016 11 1/4/2026
3.3.0-ci1009 9 1/4/2026
3.3.0-ci1008 8 1/4/2026
3.3.0-ci1007 8 1/4/2026
3.3.0-ci1006 8 1/4/2026
3.3.0-ci1005 12 1/4/2026
3.3.0-ci1004 11 1/4/2026
3.3.0-ci1003 8 1/4/2026
3.3.0-ci1002 9 1/4/2026
3.3.0-ci1001 9 1/4/2026
3.3.0-ci1000 11 1/4/2026
3.2.1 19 12/12/2025
3.2.1-ci1002 14 1/4/2026
3.2.1-ci1001 7 1/4/2026
3.2.1-ci1000 9 1/4/2026
3.2.0 10 1/4/2026
3.2.0-ci1043 9 1/4/2026
3.2.0-ci1042 8 1/4/2026
3.2.0-ci1041 9 1/4/2026
3.2.0-ci1040 10 1/4/2026
3.2.0-ci1039 9 1/4/2026
3.2.0-ci1038 14 1/4/2026
3.2.0-ci1037 9 1/4/2026
3.2.0-ci1036 8 1/4/2026
3.2.0-ci1035 8 1/4/2026
3.2.0-ci1034 9 1/4/2026
3.2.0-ci1033 13 1/4/2026
3.2.0-ci1030 10 1/4/2026
3.2.0-ci1029 9 1/4/2026
3.2.0-ci1028 9 1/4/2026
3.2.0-ci1027 8 1/4/2026
3.2.0-ci1026 9 1/4/2026
3.2.0-ci1025 8 1/4/2026
3.2.0-ci1024 11 1/4/2026
3.2.0-ci1023 8 1/4/2026
3.2.0-ci1022 7 1/4/2026
3.2.0-ci1021 9 1/4/2026
3.2.0-ci1017 9 1/4/2026
3.2.0-ci1016 12 1/4/2026
3.2.0-ci1015 9 1/4/2026
3.2.0-ci1014 10 1/4/2026
3.2.0-ci1011 9 1/4/2026
3.2.0-ci1010 9 1/4/2026
3.2.0-ci1009 9 1/4/2026
3.2.0-ci1008 9 1/4/2026
3.2.0-ci1005 12 1/4/2026
3.2.0-ci1004 12 1/4/2026
3.2.0-ci1003 9 1/4/2026
3.2.0-ci1002 8 1/4/2026
3.2.0-ci1001 9 1/4/2026
3.2.0-ci1000 10 1/4/2026
3.1.1 19 12/12/2025
3.1.1-ci1003 9 1/4/2026
3.1.1-ci1000 9 1/4/2026
3.1.0 22 12/12/2025
3.1.0-ci1058 10 1/4/2026
3.1.0-ci1056 10 1/4/2026
3.1.0-ci1053 8 1/4/2026
3.1.0-ci1051 9 1/4/2026
3.1.0-ci1050 9 1/4/2026
3.1.0-ci1049 11 1/4/2026
3.1.0-ci1048 10 1/4/2026
3.1.0-ci1047 9 1/4/2026
3.1.0-ci1046 10 1/4/2026
3.1.0-ci1045 8 1/4/2026
3.1.0-ci1044 8 1/4/2026
3.1.0-ci1043 8 1/4/2026
3.1.0-ci1038 10 1/4/2026
3.1.0-ci1037 12 1/4/2026
3.1.0-ci1036 7 1/4/2026
3.1.0-ci1035 11 1/4/2026
3.1.0-ci1034 10 1/4/2026
3.1.0-ci1033 9 1/4/2026
3.1.0-ci1032 10 1/4/2026
3.1.0-ci1027 9 1/4/2026
3.1.0-ci1026 9 1/4/2026
3.1.0-ci1024 10 1/4/2026
3.1.0-ci1023 10 1/4/2026
3.1.0-ci1022 12 1/4/2026
3.1.0-ci1021 10 1/4/2026
3.1.0-ci1020 13 1/4/2026
3.1.0-ci1019 9 1/4/2026
3.1.0-ci1018 9 1/4/2026
3.1.0-ci1017 7 1/4/2026
3.1.0-ci1016 9 1/4/2026
3.1.0-ci1014 9 1/4/2026
3.0.0 20 12/12/2025
3.0.0-ci1053 9 1/4/2026
3.0.0-ci1043 10 1/4/2026
3.0.0-ci1042 11 1/4/2026
3.0.0-ci1041 8 1/4/2026
3.0.0-ci1040 8 1/4/2026
3.0.0-ci1039 9 1/4/2026
3.0.0-ci1038 10 1/4/2026
3.0.0-ci1037 9 1/4/2026
3.0.0-ci1036 11 1/4/2026
3.0.0-ci1035 10 1/4/2026
3.0.0-ci1034 8 1/4/2026
3.0.0-ci1033 10 1/4/2026
3.0.0-ci1032 8 1/4/2026
3.0.0-ci1031 10 1/4/2026
3.0.0-ci1029 10 1/4/2026
3.0.0-ci1028 10 1/4/2026
3.0.0-ci1026 9 1/4/2026
2.2.25-ci 9 1/4/2026
2.2.24-ci 9 1/4/2026
2.2.1 22 12/12/2025
2.2.1-ci9006 8 1/4/2026
2.2.1-ci9005 8 1/4/2026
2.2.1-ci9004 8 1/4/2026
2.2.1-ci9003 9 1/4/2026
2.2.1-ci9002 11 1/4/2026
2.2.1-ci9001 8 1/4/2026
2.2.1-ci9000 9 1/4/2026
2.2.1-ci9 10 1/4/2026
2.2.1-ci8 9 1/4/2026
2.2.1-ci7 10 1/4/2026
2.2.1-ci6 9 1/4/2026
2.2.1-ci5 8 1/4/2026
2.2.1-ci4 8 1/4/2026
2.2.1-ci17 10 1/4/2026
2.2.1-ci16 9 1/4/2026
2.2.1-ci11 8 1/4/2026
2.2.1-ci1000 11 1/4/2026
2.2.1-ci10 9 1/4/2026
2.2.0 18 12/12/2025
2.1.267 24 12/11/2025
2.1.266 18 12/11/2025
2.1.265 18 12/11/2025
2.1.262 22 12/11/2025
2.1.1 21 12/12/2025
2.0.0 20 12/12/2025
1.1.2 20 12/12/2025
1.1.1 13 1/4/2026
1.1.0.118 22 12/11/2025