-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
Collision with DLL in TypeReference package causes build failure #253
Comments
I'm having the same issue where Yarn 2.3.1 dll collides with the one in the NUGET package, NUGET adds the dll as a dependency which causes the problem. I agree with @Runaway01 that if Yarn also added this dll as a dependency it would not have this issue.
|
Sadly this continue to happen with the new version 2.4.0 |
This is something we've been trying to work out the best way to fix. So some solutions we've been thinking about:
None of these is ideal, hence why we are sorta stuck. |
Ah I understand the problem now. What I've done as a workaround is to replace Yarn Spinner Package Manager integration by downloading the package from github and adding it directly. This way I can safely remove any dll that may cause conflicts. |
Thanks for the info. To sort this, we added the package manually and deleted the conflicting DLLs. Edit: I didn't mean to close the issue, sorry 😅 Could the dependencies be defined via package.json, then resolved and embedded when creating the .unity package as a build step or something like that? |
Ah the number of times I have closed issues by accident are too high to count... |
What is the current behavior?
When having both Yarn Spinner and Type References in the same project the following error prevents building to any platform:
Plugin 'System.Runtime.CompilerServices.Unsafe.dll' is used from several locations
.Please provide the steps to reproduce, and if possible a minimal demo of the problem:
openupm install com.solidalloy.type-references
.Here's a project with this already set up which just needs to be built to produce the error.
What is the expected behavior?
The build completes without error.
Please tell us about your environment:
Other information
I think if YarnSpinner had these DLLs as dependencies rather than shipping them this would not be an issue.
Here's the full error:
Thanks for your time.
The text was updated successfully, but these errors were encountered: