更新时间:2023-02-16 23:42:08
您可能更新了ASP.NET Core依赖项,但仍使用过时的AutoMapper.Extensions.Microsoft.DependencyInjection
包.
You likely updated your ASP.NET Core dependencies, but still using outdated AutoMapper.Extensions.Microsoft.DependencyInjection
package.
对于ASP.NET Core,您至少需要
For ASP.NET Core you need at least Version 3.0.1
from https://www.nuget.org/packages/AutoMapper.Extensions.Microsoft.DependencyInjection/3.0.1
哪个引用了AutoMapper 6.1.1或更高版本.
Which references AutoMapper 6.1.1 or higher.
AutoMapper(> = 6.1.1)
AutoMapper (>= 6.1.1)
Microsoft.Extensions.DependencyInjection.Abstractions(> = 2.0.0)
Microsoft.Extensions.DependencyInjection.Abstractions (>= 2.0.0)
Microsoft.Extensions.DependencyModel(> = 2.0.0)
Microsoft.Extensions.DependencyModel (>= 2.0.0)
较早的软件包取决于Microsoft.Extensions.DependencyInjection.Abstractions
1.1.0
,因此不能与ASP.NET Core一起使用,因为Microsoft.Extensions.DependencyInjection.Abstractions
1.1.0和2.0
The older packages depend on Microsoft.Extensions.DependencyInjection.Abstractions
1.1.0
and can't be used with ASP.NET Core since there have been breaking changes between Microsoft.Extensions.DependencyInjection.Abstractions
1.1.0 and 2.0