Reputation: 127
I am getting Could not load file or assembly 'Microsoft.Extensions.DependencyInjection, Version=3.1.0.0 exception in .Net core 2.0. I tried installing Microsoft.Extensions.DependencyInjection 3.1.0 from Nuget but still the issue persists. Any help is appreciable.
Thanks
Upvotes: 0
Views: 326
Reputation: 127
For .Net Standard 2.0 When I Installed Microsoft.Extensions.DependencyInjection 3.1.0 from 3.1.3, the issue got resolved. I tried to adding binding in the app.config, but still it didn't work. Not sure why 3.1.0 version is required.
Upvotes: 0
Reputation: 461
Try adding "Microsoft.Extensions.DependencyInjection -Version 2.*"
It should be compatible with .Net core 2.0.
The one you are trying to install is 3.1 which has dependencies on .NET Core 3.1
Upvotes: 1