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

When build I got error: Plugin 'System.Runtime.CompilerServices.Unsafe.dll' is used from several locations #15

Closed
Kotsuha opened this issue Oct 17, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Kotsuha
Copy link

Kotsuha commented Oct 17, 2021

I already have System.Runtime.CompilerServices.Unsafe in project. I added UIMGUI_REMOVE_UNSAFE_DLL in Project Settings > Player > Scripting Define Symbols and the error is gone. But when I build, the error appears again.

Plugin 'System.Runtime.CompilerServices.Unsafe.dll' is used from several locations:
 Assets/Plugins/System.Runtime.CompilerServices.Unsafe.dll would be copied to <PluginPath>/x86_64/System.Runtime.CompilerServices.Unsafe.dll
 Packages/com.psydack.uimgui/Plugins/System.Runtime.CompilerServices.Unsafe.dll would be copied to <PluginPath>/x86_64/System.Runtime.CompilerServices.Unsafe.dll
Please fix plugin settings and try again.

Do you know how to fix this?

Unity 2021.1.25f1

@psydack
Copy link
Owner

psydack commented Oct 18, 2021

I don't know why it's happening. Because it seems to be an Unity's problem you could delete Unsafe.dll from plugins folder into uimgui folder's package. uimgui/Plugins/System.Runtime.CompilerServices.Unsafe.dll

@psydack psydack self-assigned this Oct 18, 2021
@psydack psydack added the bug Something isn't working label Oct 18, 2021
@psydack psydack pinned this issue Oct 18, 2021
@Kotsuha
Copy link
Author

Kotsuha commented Oct 19, 2021

Thanks for the info. It says 'Fixed in 2021.2.0a1.279' so I tried to find a newer one. I only saw 2021.2.0b16 in Hub so I installed that. For some reason I cannot open my project in this version. Will try deleting one Unsafe.dll later.

@psydack psydack closed this as completed Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants