Hello experts,
I am trying to make a build targetting UWP. After overcoming a whole bunch issues, I got stuck and nothing on the forums nor Google could help out. It seems that the compiler cannot find WinRTLegacy.dll (although it is right where it should be). Build Error
AssemblyResolutionException: Failed to resolve assembly: ‘WinRTLegacy, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’
Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, Mono.Cecil.ReaderParameters parameters)
UnityEditor.MonoAssemblyStripping.ResolveAssemblyReference (IAssemblyResolver resolver, Mono.Cecil.AssemblyNameReference assemblyName) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/MonoAssemblyStripping.cs:264)
UnityEditor.HostView:OnGUI()
If I manually bring the dll in the project, I get the duplicate error for the “SerializableAttribute”:
Duplicate error error CS0433: The type ‘SerializableAttribute’ exists in both ‘WinRTLegacy, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’ and ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’
I am building on Unity 2017.1.0f3 with the following player settings:

![]()
How can I solve this issue in order to build for UWP?
Thank you,
Alex.