monotorrent
monotorrent copied to clipboard
Missing dependency - System.Runtime.CompilerServices.Unsafe
Since I updated from version 2.0.7 to 3.0.2, this error #649 has since been solved, but another similar one has appeared before, if I can see correctly, it has been fixed #582, you could not add a similar solution to "System.Runtime.CompilerServices .Unsafe" dependency?
Exception type : System.BadImageFormatException
Message : Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Reference assemblies should not be loaded for execution. They can only be loaded in the Reflection-only loader context. (Exception from HRESULT: 0x80131058)
StackTrace : at System.Span`1..ctor(T[] array)
at MonoTorrent.BEncoding.BEncodedValue.Encode() in C:\Projects\monotorrent\src\MonoTorrent.BEncoding\MonoTorrent.BEncoding\BEncodedValue.cs:line 50
at MonoTorrent.BEncoding.BEncodedValue.Clone[T](T value) in C:\Projects\monotorrent\src\MonoTorrent.BEncoding\MonoTorrent.BEncoding\BEncodedValue.cs:line 65
at MonoTorrent.EditableTorrent..ctor(BEncodedDictionary metadata) in C:\Projects\monotorrent\src\MonoTorrent.Client\MonoTorrent\EditableTorrent.cs:line 123
at MonoTorrent.TorrentCreator..ctor(TorrentType type, Factories factories) in C:\Projects\monotorrent\src\MonoTorrent.Client\MonoTorrent\TorrentCreator.cs:line 178
at MultiUploader.Helpers.Torrents.<CreateTorrentAsync>d__0.MoveNext()
Exception type : System.BadImageFormatException
Message : Cannot load a reference assembly for execution.