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

Multiple precompiled assemblies with the same name System.Runtime.CompilerServices.Unsafe.dll included on the current platform. Only one assembly with the same name is allowed per platform. #14

Open
Rica02 opened this issue Jul 3, 2023 · 3 comments · May be fixed by #24

Comments

@Rica02
Copy link

Rica02 commented Jul 3, 2023

Getting this error after installing unity-rlottie version 0.2.2:

Multiple precompiled assemblies with the same name System.Runtime.CompilerServices.Unsafe.dll included on the current platform. Only one assembly with the same name is allowed per platform. (Assets/Packages/System.Runtime.CompilerServices.Unsafe.4.5.3/lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll)

Multiple precompiled assemblies with the same name System.Runtime.CompilerServices.Unsafe.dll included on the current platform. Only one assembly with the same name is allowed per platform. (/Volumes/SamsungT7SSD/MyProject/Library/PackageCache/com.gindemit.rlottie@82e20a0008/ExternalDlls/System.Runtime.CompilerServices.Unsafe.dll)

Deleting one of the System.Runtime.CompilerServices.Unsafe.dll files did not work, any advice?

Unity version: 2021.3.19f1

@gindemit
Copy link
Owner

gindemit commented Jul 5, 2023

Hello @Rica02, thank you for your report!

Could you please provide some details about your installation process for the Assets/Packages/System.Runtime.CompilerServices.Unsafe.4.5.3 package? This will help me to replicate the issue on my end.

Additionally, you mentioned attempting to delete the Assets/Packages/System.Runtime.CompilerServices.Unsafe.4.5.3 package. I'm curious - once the package was deleted, did you encounter any subsequent errors?

@Rica02
Copy link
Author

Rica02 commented Jul 17, 2023

We believe it's from Microsoft's NuGet library (https://imgur.com/a/kKmKrOA). Deleting its Unsafe package caused compiling issues with the library we're using from it

@gindemit
Copy link
Owner

Hello @Rica02, thanks for the infos!
I think I will remove this dll in the next release from the package.
The projects that does not have the dll awailable will need to install it separately.

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.

2 participants