AutoMapper 16.1.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 with automatic service registration
services.AddAutoMapper(cfg => 
{
    cfg.CreateMap<Foo, FooDto>();
    cfg.CreateMap<Bar, BarDto>();
});
// AutoMapper will automatically register any implementations of:
// - IValueResolver<TSource, TDestination, TDestMember>
// - IMemberValueResolver<TSource, TDestination, TSourceMember, TDestMember>
// - ITypeConverter<TSource, TDestination>
// - IValueConverter<TSourceMember, TDestinationMember>
// - ICondition<TSource, TDestination, TDestMember>
// - IPreCondition<TSource, TDestination>
// - IMappingAction<TSource, TDestination>
// from the provided assemblies

// 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 1 3/17/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 9 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 12 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 13 1/4/2026
6.0.0 11 1/4/2026
5.2.0 23 12/12/2025
5.1.1 19 12/12/2025
5.1.0 10 1/4/2026
5.0.2 18 12/12/2025
5.0.1 11 1/4/2026
5.0.0 10 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 11 1/4/2026
4.0.4 20 12/12/2025
4.0.3 14 1/4/2026
4.0.2 11 1/4/2026
4.0.1 10 1/4/2026
4.0.0 8 1/4/2026
4.0.0-ci1061 8 1/4/2026
4.0.0-ci1057 12 1/4/2026
4.0.0-ci1056 10 1/4/2026
4.0.0-ci1054 10 1/4/2026
4.0.0-ci1053 14 1/4/2026
4.0.0-ci1052 9 1/4/2026
4.0.0-ci1051 10 1/4/2026
4.0.0-ci1050 9 1/4/2026
4.0.0-ci1049 12 1/4/2026
4.0.0-ci1046 14 1/4/2026
4.0.0-ci1038 9 1/4/2026
4.0.0-ci1036 11 1/4/2026
4.0.0-ci1034 11 1/4/2026
4.0.0-ci1032 11 1/4/2026
4.0.0-ci1031 8 1/4/2026
4.0.0-ci1026 12 1/4/2026
4.0.0-ci1021 11 1/4/2026
4.0.0-ci1020 9 1/4/2026
4.0.0-ci1019 11 1/4/2026
4.0.0-ci1018 10 1/4/2026
4.0.0-ci1017 10 1/4/2026
4.0.0-ci1015 14 1/4/2026
4.0.0-ci1014 10 1/4/2026
4.0.0-ci1007 13 1/4/2026
4.0.0-ci1006 11 1/4/2026
4.0.0-ci1004 9 1/4/2026
4.0.0-ci1002 20 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 10 1/4/2026
3.3.0-ci1032 11 1/4/2026
3.3.0-ci1031 10 1/4/2026
3.3.0-ci1030 9 1/4/2026
3.3.0-ci1029 10 1/4/2026
3.3.0-ci1028 10 1/4/2026
3.3.0-ci1027 9 1/4/2026
3.3.0-ci1026 10 1/4/2026
3.3.0-ci1025 11 1/4/2026
3.3.0-ci1024 10 1/4/2026
3.3.0-ci1023 8 1/4/2026
3.3.0-ci1022 10 1/4/2026
3.3.0-ci1021 13 1/4/2026
3.3.0-ci1020 10 1/4/2026
3.3.0-ci1019 8 1/4/2026
3.3.0-ci1018 9 1/4/2026
3.3.0-ci1017 12 1/4/2026
3.3.0-ci1016 12 1/4/2026
3.3.0-ci1009 10 1/4/2026
3.3.0-ci1008 9 1/4/2026
3.3.0-ci1007 9 1/4/2026
3.3.0-ci1006 9 1/4/2026
3.3.0-ci1005 13 1/4/2026
3.3.0-ci1004 12 1/4/2026
3.3.0-ci1003 9 1/4/2026
3.3.0-ci1002 10 1/4/2026
3.3.0-ci1001 10 1/4/2026
3.3.0-ci1000 12 1/4/2026
3.2.1 19 12/12/2025
3.2.1-ci1002 15 1/4/2026
3.2.1-ci1001 9 1/4/2026
3.2.1-ci1000 11 1/4/2026
3.2.0 11 1/4/2026
3.2.0-ci1043 10 1/4/2026
3.2.0-ci1042 9 1/4/2026
3.2.0-ci1041 10 1/4/2026
3.2.0-ci1040 11 1/4/2026
3.2.0-ci1039 10 1/4/2026
3.2.0-ci1038 15 1/4/2026
3.2.0-ci1037 10 1/4/2026
3.2.0-ci1036 9 1/4/2026
3.2.0-ci1035 9 1/4/2026
3.2.0-ci1034 10 1/4/2026
3.2.0-ci1033 14 1/4/2026
3.2.0-ci1030 11 1/4/2026
3.2.0-ci1029 10 1/4/2026
3.2.0-ci1028 10 1/4/2026
3.2.0-ci1027 9 1/4/2026
3.2.0-ci1026 10 1/4/2026
3.2.0-ci1025 9 1/4/2026
3.2.0-ci1024 12 1/4/2026
3.2.0-ci1023 9 1/4/2026
3.2.0-ci1022 8 1/4/2026
3.2.0-ci1021 10 1/4/2026
3.2.0-ci1017 10 1/4/2026
3.2.0-ci1016 13 1/4/2026
3.2.0-ci1015 10 1/4/2026
3.2.0-ci1014 11 1/4/2026
3.2.0-ci1011 10 1/4/2026
3.2.0-ci1010 10 1/4/2026
3.2.0-ci1009 10 1/4/2026
3.2.0-ci1008 10 1/4/2026
3.2.0-ci1005 13 1/4/2026
3.2.0-ci1004 13 1/4/2026
3.2.0-ci1003 10 1/4/2026
3.2.0-ci1002 9 1/4/2026
3.2.0-ci1001 10 1/4/2026
3.2.0-ci1000 11 1/4/2026
3.1.1 19 12/12/2025
3.1.1-ci1003 10 1/4/2026
3.1.1-ci1000 10 1/4/2026
3.1.0 22 12/12/2025
3.1.0-ci1058 11 1/4/2026
3.1.0-ci1056 11 1/4/2026
3.1.0-ci1053 9 1/4/2026
3.1.0-ci1051 10 1/4/2026
3.1.0-ci1050 10 1/4/2026
3.1.0-ci1049 12 1/4/2026
3.1.0-ci1048 11 1/4/2026
3.1.0-ci1047 10 1/4/2026
3.1.0-ci1046 11 1/4/2026
3.1.0-ci1045 9 1/4/2026
3.1.0-ci1044 9 1/4/2026
3.1.0-ci1043 9 1/4/2026
3.1.0-ci1038 11 1/4/2026
3.1.0-ci1037 13 1/4/2026
3.1.0-ci1036 8 1/4/2026
3.1.0-ci1035 12 1/4/2026
3.1.0-ci1034 11 1/4/2026
3.1.0-ci1033 11 1/4/2026
3.1.0-ci1032 11 1/4/2026
3.1.0-ci1027 10 1/4/2026
3.1.0-ci1026 10 1/4/2026
3.1.0-ci1024 11 1/4/2026
3.1.0-ci1023 11 1/4/2026
3.1.0-ci1022 13 1/4/2026
3.1.0-ci1021 11 1/4/2026
3.1.0-ci1020 14 1/4/2026
3.1.0-ci1019 10 1/4/2026
3.1.0-ci1018 10 1/4/2026
3.1.0-ci1017 8 1/4/2026
3.1.0-ci1016 10 1/4/2026
3.1.0-ci1014 10 1/4/2026
3.0.0 20 12/12/2025
3.0.0-ci1053 10 1/4/2026
3.0.0-ci1043 11 1/4/2026
3.0.0-ci1042 12 1/4/2026
3.0.0-ci1041 9 1/4/2026
3.0.0-ci1040 9 1/4/2026
3.0.0-ci1039 10 1/4/2026
3.0.0-ci1038 11 1/4/2026
3.0.0-ci1037 10 1/4/2026
3.0.0-ci1036 12 1/4/2026
3.0.0-ci1035 11 1/4/2026
3.0.0-ci1034 9 1/4/2026
3.0.0-ci1033 11 1/4/2026
3.0.0-ci1032 9 1/4/2026
3.0.0-ci1031 11 1/4/2026
3.0.0-ci1029 11 1/4/2026
3.0.0-ci1028 11 1/4/2026
3.0.0-ci1026 10 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 9 1/4/2026
2.2.1-ci9005 9 1/4/2026
2.2.1-ci9004 9 1/4/2026
2.2.1-ci9003 10 1/4/2026
2.2.1-ci9002 12 1/4/2026
2.2.1-ci9001 9 1/4/2026
2.2.1-ci9000 10 1/4/2026
2.2.1-ci9 11 1/4/2026
2.2.1-ci8 10 1/4/2026
2.2.1-ci7 10 1/4/2026
2.2.1-ci6 10 1/4/2026
2.2.1-ci5 9 1/4/2026
2.2.1-ci4 9 1/4/2026
2.2.1-ci17 11 1/4/2026
2.2.1-ci16 10 1/4/2026
2.2.1-ci11 9 1/4/2026
2.2.1-ci1000 12 1/4/2026
2.2.1-ci10 10 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