What is the easiest way to find the reason for a FileLoadException:
in docker, when everything is running on local windows and linux machine?
System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Extensions.Logging.Abstractions, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The located assembly's manifest definition does not match the assembly reference. (0x80131040)
File name: 'Microsoft.Extensions.Logging.Abstractions, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
at Microsoft.Extensions.DependencyInjection.LoggingServiceCollectionExtensions.AddLogging(IServiceCollection services, Action`1 configure)
at Microsoft.Extensions.DependencyInjection.LoggingServiceCollectionExtensions.AddLogging(IServiceCollection services)
at Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider()
at Microsoft.Extensions.Hosting.HostBuilder.Build()
at Simplic.Cloud.WorkerService.BaseProgram.Main(String[] args, Action`1 setup, Action`1 configureHostBuilder)
EDIT
I could reproduce the problem on ubuntu as well. This question will be updated with information from: Wrong assembly version in output when compiling under linux (.net core)
User contributions licensed under CC BY-SA 3.0