Azure / DotNetty

DotNetty project – a port of netty, event-driven asynchronous network application framework
Other
4.09k stars 977 forks source link

Wrong Microsoft.Extensions.Logging dependency #345

Closed vasily-kirichenko closed 6 years ago

vasily-kirichenko commented 6 years ago

It does not compatible with 'Microsoft.Extensions.Logging` 2.x:

[ERROR][22.01.2018 8:29:12][Thread 0011][Akka.Remote.Transport.DotNetty.TcpTransport] Failed to bind to 0.0.0.0:2552; shutting down DotNetty transport. Cause: System.TypeInitializationException: The type initializer for 'DotNetty.Transport.Channels.DefaultChannelId' threw an exception. ---> System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Extensions.Loggin g.Abstractions, Version=1.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

However dependency claim that it's compatible with version >= 1.1.1

StormHub commented 6 years ago

Microsoft.Extensions.Logging 2.0.0 depends on .NETStandard 2.0 and has some breaking changes such as https://github.com/aspnet/Announcements/issues/238. The forward compatibility cannot deal with breaking changes. I think you have to stick to the orignal version.