Dependency issue
Hello,
I imported a private package to my project and now I can't start the project, I have this error at startup
The assembly with display name 'Microsoft.Extensions.Logging.Abstractions' failed to load in the 'Load' binding context of the AppDomain with ID 1. The cause of the failure was: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Extensions.Logging.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=' or one of its dependencies
I've tried to find solutions on the Internet but none of them have solved my problem.
If anyone has a clue how to solve this problem, I'd love to hear from you.
8 Replies
"imported a private package" how? from like a private nuget feed?
Yep
is Microsoft.Extensions.Logging.Abstractions in the output folder?
I've taken over the project recently, just give me two seconds to find the output file to check this out 😄
Yes it is in the output folder 🙂
for weird stuff like this my first gut instinct is to close the editor/IDE, delete the bin & obj folders, then try building and running again
It's done, but unfortunately the error persists :/
you can try nuget solver or other tools to check dependencies
I'm having this error now Method not found: 'System.IServiceProvider Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(Microsoft.Extensions.DependencyInjection.IServiceCollection)'.