FileLoadException .net core docker application

0

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)

c#
linux
docker
asp.net-core
.net-core
asked on Stack Overflow Nov 6, 2020 by BendEg • edited Nov 7, 2020 by BendEg

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0