Cysharp / ZLogger

Zero Allocation Text/Structured Logger for .NET with StringInterpolation and Source Generator, built on top of a Microsoft.Extensions.Logging.
MIT License
1.14k stars 80 forks source link

Unity Editor 2021 IAsyncDisposaple Multiple dll issue #58

Closed TumayVarel closed 1 year ago

TumayVarel commented 2 years ago

In Unity Editor 2021.4.3, Zlogger gives two compile error:


Assets\Scripts\ZLogger\AsyncStreamLineMessageWriter.cs(12,69): error CS0433: The type 'IAsyncDisposable' exists in both 'Microsoft.Bcl.AsyncInterfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

Assets\Scripts\ZLogger\IAsyncLogProcessor.cs(7,43): error CS0433: The type 'IAsyncDisposable' exists in both 'Microsoft.Bcl.AsyncInterfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
GCodergr commented 2 years ago

You probably mean Unity 2021.3.4f1 . Got the same error too.

hanxiaoxin778 commented 1 year ago

1.Download https://github.com/Cysharp/ZLogger/files/7770293/Cysharp.zip 2.Replace the plugins/unity_2021/Microsoft.Bcl.AsyncInterfaces.dll file 3.Delete the ZLogger.Shims folder

neuecc commented 1 year ago

fixed at 1.7.0.