📜  automapper c# 初始化错误 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:03.930000             🧑  作者: Mango

代码示例1
You might be using an older version of AutoMapper.Extensions.Microsoft.DependencyInjection
Install the latest version of AutoMapper.Extensions.Microsoft.DependencyInjection (I used v7.0.0)from NuGet and change services.AddAutoMapper( ) to services.AddAutoMapper(typeof(services)) in Startup.cs