genaray / Arch

A high-performance C# based Archetype & Chunks Entity Component System (ECS) with optional multithreading.
Apache License 2.0
1.03k stars 89 forks source link

This is not a Bug, how do I resolve version conflicts in dependent libraries? #230

Open coinsoundsbetter opened 2 months ago

coinsoundsbetter commented 2 months ago

When I used Google.ProtoBuf + Arch in a Unity project, ProtoBuf pilerServices relies on System.Runtime.CompilerServices.Unsafe 4.0; The Arch is dependent on the System.Runtime.CompilerServices.Unsafe 6.0; The error that appears is: Google.Protobuf references strong named System.Runtime.CompilerServices.Unsafe Assembly references: 4.0.4.1 Found in project: 6.0.0.0. Does anyone know how to make them compatible?

coinsoundsbetter commented 2 months ago

I recompiled Google.Protobuf using System.Runtime.CompilerServices.Unsafe 6.0 to solve the above problem. But I found a new error:Assembly 'Assets/Packages/CommunityToolkit.HighPerformance.7.1.2/lib/netstandard2.1/CommunityToolkit.HighPerformance.dll' will not be loaded due to errors: CommunityToolkit.HighPerformance references strong named System.Runtime.CompilerServices.Unsafe Assembly references: 5.0.0.0 Found in project: 6.0.0.0. Why from NuGet install Arch package, specify different System.Runtime.Com pilerServices. Unsafe version?

genaray commented 1 month ago

Was your iusse resolved? If so how?