AutoMapper / AutoMapper.Extensions.Microsoft.DependencyInjection

MIT License
258 stars 79 forks source link

CS0433: The type 'ServiceCollection' exists in both ... #162

Closed mattgillam closed 2 years ago

mattgillam commented 2 years ago

Installing this package results in the following build error (in my Test project):

Error CS0433: The type 'ServiceCollection' exists in both 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.Extensions.DependencyInjection, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' (CS0433) would appreciate any guidance, (presumably is from conflicting dependencies), thank you.

jbogard commented 2 years ago

You'll likely need to create a package reference for the 6.0.0 version in your test project.

mattgillam commented 2 years ago

@jbogard thank you I will try that and update.

mattgillam commented 2 years ago

That builds, thanks for your help.

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.