Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime error when using nuget library: dependencies are wrong version #387

Closed
mikejurka opened this issue Apr 8, 2021 · 0 comments · Fixed by #513
Closed

Runtime error when using nuget library: dependencies are wrong version #387

mikejurka opened this issue Apr 8, 2021 · 0 comments · Fixed by #513

Comments

@mikejurka
Copy link

Description

Repro steps:
(0. Temp: Use https://github.com/jwittner/NuGetForUnity/tree/dev/versionRangeSupport to get around #379)

  1. Use NuGet for Unity to get K4os.Compression.LZ4 (and dependencies)
  2. Run your app

I see:

Assembly 'Assets/Packages/System.Memory.4.5.4/lib/netstandard2.0/System.Memory.dll' will not be loaded due to errors:
System.Memory references strong named System.Buffers in a different folder, versions has to match. Assembly references: 4.0.2.0 Found in project: 4.0.3.0.

and

Assembly 'Assets/Packages/K4os.Compression.LZ4.1.2.6/lib/netstandard2.0/K4os.Compression.LZ4.dll' will not be loaded due to errors:
K4os.Compression.LZ4 references strong named System.Runtime.CompilerServices.Unsafe in a different folder, versions has to match. Assembly references: 4.0.6.0 Found in project: 4.0.4.1.

Note: If I download those libraries (System.Buffers and System.Runtime.CompilerServices.Unsafe) from Nuget, it seems to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant