I’ve been trying to get a Windows 10 UAP build of our game working which uses some of the XML classes found in System.XML. The game runs fine in editor with no errors but when I go to make a Windows Universal 10 XAML build I get this error:
The type ‘XmlDocument’ exists in both ‘System.Xml.XmlDocument, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ and ‘WinRTLegacy, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’
It’s a known bug that will be fixed in the first 5.2 patch release.
This happens due to the fact that these APIs weren’t available on Windows 8.1, so we’ve implemented them ourselves. However, Microsoft added them back with Windows 10.
The only workaround I can offer is to compile the offending code to a separate DLL and drop it into your project.
What do you make of this one? I’m using VS2015 that came installed with 5.2 (But it wasn’t in the list of script editors so I had to browse for it, if that the problem?)
Could not start compilationException: ‘UnionMetadata\Windows.winmd’ not found, do you have Windows UAP SDK installed?
UnityEditor.Scripting.Compilers.MicrosoftCSharpCompiler.FillNETCoreCompilerOptions (WSASDK wsaSDK, System.Collections.Generic.List`1 arguments, System.String& argsPrefix) (at C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/MicrosoftCSharpCompiler.cs:184)
UnityEditor.Scripting.Compilers.MicrosoftCSharpCompiler.StartCompiler () (at C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/MicrosoftCSharpCompiler.cs:291)
UnityEditor.Scripting.Compilers.ScriptCompilerBase.BeginCompiling () (at C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/ScriptCompilerBase.cs:47)
UnityEditor.HostView:OnGUI()
Hello there, I have the same issue with AirBiscuit building from Unity 5.2.1f1 for Windows Universal 10.
How do you mean by the quoted solution? How can I create Universal Windows App from Visual Studio 2015?
I have opened VS2015 project file, press Start (build), and then I get this message.
A project with an Output Type of Class Library cannot be started directly. In order to debug this project, add an executable project to this solution which references the library project. Set the executable project as the startup project.