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 assemblies with equivalent identity have been imported #121

Open
constantinpopp opened this issue Apr 1, 2022 · 3 comments
Open

Comments

@constantinpopp
Copy link

constantinpopp commented Apr 1, 2022

Hi,
Have tried installing the UXF framework on Unity 2021.2.15f1 running on Windows. Unity complains that the System.Windows.Forms.dll is duplicated after the install of the UXF framework. This happens on the vanilla URP core template with the UXF being the first extra package to be installed.

error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\const\Unity\TestUXF\Assets\UXF\Plugins\System.Windows.Forms.dll' and 'C:\Program Files\Unity\Hub\Editor\2021.2.15f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.Forms.dll'. Remove one of the duplicate references.

If I remove the duplicate file from the UXF framework it breaks the framework.

On Unity 2020.3.31f1 get this error message:
Assembly 'Packages/com.unity.collab-proxy/Lib/Editor/PlasticSCM/unityplastic.dll' will not be loaded due to errors:
unityplastic references strong named System.Windows.Forms Assembly references: 4.0.0.0 Found in project: 2.0.0.0.
Assembly Version Validation can be disabled in Player Settings "Assembly Version Validation"

The UXF framework seems to launch despite this.

Any help would be appreciated. Best wishes
Constantin

@jackbrookes
Copy link
Member

Hi, in general you should stick to LTS versions of Unity for UXF work - these are the most stable and what UXF is developed against. The Tech Stream versions have too many changes month-to-month that makes development difficult. The current LTS version is Unity 2020.

Its possible this is a bug with Unity:
https://githubmemory.com/repo/SrejonKhan/AnotherFileBrowser/issues/2

Perhaps it can be ignored? I will keep a look out for issues related to this.

@constantinpopp
Copy link
Author

Ah, thanks for the link. This seems to be the same issue. I'll try this out. Many thanks.

@VissersR
Copy link

The 2021.3 LTS has been out for a month now, the issue is still there. The workaround I used is to copy the win32 version from the Unity 2021.3 directory over the existing version in the project.

Not really happy that a dependency like WinForms is used in Unity to display a filebrowser that puts the focus outside of Unity.
I think a Unity native filebrowser would be better in line with the unity architecture and user experience.

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

No branches or pull requests

3 participants