Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
362 views
in Technique[技术] by (71.8m points)

unity3d - Multiple assemblies with equivalent identy have been imported

I am trying to use unity to push a message to my Slack channel. I have written the code that pushes it and tried it in VSCode so I know it should work. For this I'm using the package SlackBotMessages that I installed through NuGet. This works fine in VSCode but does not in unity. I tried importing it using NuGet for unity, that I prior to this imported. There are no scripts in the project yet. When I install SlackBotMessages I get the following error:

Microsoft (R) Visual C# Compiler version 2.9.1.65535 (9d34608e)
Copyright (C) Microsoft Corporation. All rights reserved.

error CS1703: Multiple assemblies with equivalent identity have been imported: 'E:my gamesdont die on me nowAssetsPackagesSystem.Runtime.Serialization.Json.4.3.0lib
etstandard1.3System.Runtime.Serialization.Json.dll' and 'C:Program FilesUnityHubEditor2019.4.17f1EditorDataNetStandardcompat2.0.0shims
etstandardSystem.Runtime.Serialization.Json.dll'. Remove one of the duplicate references.
error CS1703: Multiple assemblies with equivalent identity have been imported: 'E:my gamesdont die on me nowAssetsPackagesSystem.Xml.XmlSerializer.4.3.0lib
etstandard1.3System.Xml.XmlSerializer.dll' and 'C:Program FilesUnityHubEditor2019.4.17f1EditorDataNetStandardcompat2.0.0shims
etstandardSystem.Xml.XmlSerializer.dll'. Remove one of the duplicate references.
error CS1703: Multiple assemblies with equivalent identity have been imported: 'E:my gamesdont die on me nowAssetsPackagesSystem.Xml.XDocument.4.3.0lib
etstandard1.3System.Xml.XDocument.dll' and 'C:Program FilesUnityHubEditor2019.4.17f1EditorDataNetStandardcompat2.0.0shims
etstandardSystem.Xml.XDocument.dll'. Remove one of the duplicate references.
error CS1703: Multiple assemblies with equivalent identity have been imported: 'E:my gamesdont die on me nowAssetsPackagesSystem.Collections.Concurrent.4.3.0lib
etstandard1.3System.Collections.Concurrent.dll' and 'C:Program FilesUnityHubEditor2019.4.17f1EditorDataNetStandardcompat2.0.0shims
etstandardSystem.Collections.Concurrent.dll'. Remove one of the duplicate references.
error CS1703: Multiple assemblies with equivalent identity have been imported: 'E:my gamesdont die on me nowAssetsPackagesSystem.Threading.4.3.0lib
etstandard1.3System.Threading.dll' and 'C:Program FilesUnityHubEditor2019.4.17f1EditorDataNetStandardcompat2.0.0shims
etstandardSystem.Threading.dll'. Remove one of the duplicate references.

I understand that this is related to there being some sort of duplicate of something. I tried following the file location the error message gave me but I have a hard time understanding the xml file, as in I don't know if I can fix the error or if I can just remove the conflicting packages without problems. I have tried researching it on my own but everything I've found has been of no help or been too hard for me to comprehend. Please bear in mind that I haven't dabbled in anything like this before so I'm kind of just swinging in the dark hoping to hit something. Please let me know if any more information is required and I will do my best to provide it.

Any help even if it's just helping me understand the problem better is greatly appreciated!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...