C
C#•5mo ago
Zepeto

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
jcotton42
jcotton42•5mo ago
"imported a private package" how? from like a private nuget feed?
Zepeto
Zepeto•5mo ago
Yep
jcotton42
jcotton42•5mo ago
is Microsoft.Extensions.Logging.Abstractions in the output folder?
Zepeto
Zepeto•5mo ago
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 🙂
jcotton42
jcotton42•5mo ago
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
Zepeto
Zepeto•5mo ago
It's done, but unfortunately the error persists :/
WEIRD FLEX
WEIRD FLEX•5mo ago
you can try nuget solver or other tools to check dependencies
Zepeto
Zepeto•5mo ago
I'm having this error now Method not found: 'System.IServiceProvider Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(Microsoft.Extensions.DependencyInjection.IServiceCollection)'.