UnityGLTF icon indicating copy to clipboard operation
UnityGLTF copied to clipboard

Build to UWP fails - DLL conflict, out of the box

Open tommensink opened this issue 6 years ago • 1 comments

When I build to UWP I get this error in Unity:

error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\tom\Documents\Source\AugView\Assets\UnityGLTF\Runtime\Plugins\uap10.0.10586\System.ServiceModel.Security.dll' and 'C:\Program Files\Unity\Hub\Editor\2019.4.1f1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ServiceModel.Security.dll'. Remove one of the duplicate references. error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\tom\Documents\Source\AugView\Assets\UnityGLTF\Runtime\Plugins\uap10.0.10586\System.ServiceModel.Duplex.dll' and 'C:\Program Files\Unity\Hub\Editor\2019.4.1f1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ServiceModel.Duplex.dll'. Remove one of the duplicate references. etc....

Unity version 2019.4.1f1, but also in lower 2018.4.23f1 (so both LTS) versions. Hope that someone can help, have to release today. Thanks!

tommensink avatar Jul 10 '20 10:07 tommensink

I found out that when you build GLTFSerialization.sln according to the instruction with Visual Studio, that when a large number of system...dll are generated, it will result in failure to build in Unity. I build it again with VS 2017 instead of 2019 and I only got the core UnityGLTF dlls. Building in Unity now succeeds! Not sure whether the VS 2017 versus VS 2019 was the issue, but at least this long list of system dlls generated is an indication that the preparing process for UnityGLTF went wrong and you need to fix this.

So this issue can be closed

tommensink avatar Jul 10 '20 12:07 tommensink