Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Can't build into C# project

Discussion in 'VR' started by xinyan, Apr 3, 2016.

  1. xinyan

    xinyan

    Joined:
    Apr 3, 2016
    Posts:
    1
    Hi, guys. i have been followed the instructions step by step when i'm installing visual studio and unity. but errors comes out when i trying to build the Galaxy explorer project into C# project, here it is:
    Could not start compilationException: 'UnionMetadata\Facade\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:170)
    UnityEditor.Scripting.Compilers.MicrosoftCSharpCompiler.StartCompiler () (at C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/MicrosoftCSharpCompiler.cs:289)
    UnityEditor.Scripting.Compilers.ScriptCompilerBase.BeginCompiling () (at C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/ScriptCompilerBase.cs:47)
    UnityEditor.HostView:OnGUI()

    It says it can't find the win 10 SDK, but i enabled it when i'm installing the visual studio update 2.
    thank you for helping me to fix this problem.
     
  2. Unity_Wesley

    Unity_Wesley

    Unity Technologies

    Joined:
    Sep 17, 2015
    Posts:
    558
    Hello,

    It appears that you don't have the metro support installed on your machine. Were do you see these errors? Is this happening with Unity build or when building in Visual studio. Just in case I have pasted the links for the technical review. Are using the correct OS? In order to build with HoloLens you need Windows 10 pro, education, or Enterprise.

    Download Technical Preview
    We are excited you would like to try out the Unity HoloLens Technical Preview. The links below can be used to download a custom version of the Unity Editor and Runtime for Hololens as well as offline documentation. This custom build supports only the Windows Store build target for HoloLens and is based off the 5.4 Beta builds. Be sure to check back to this site regularly for updated builds.

    Please note that the Technical Preview can be installed along side other Unity builds including the 5.4 public Beta.

    1. First, install the 64-bit (Win) or 32-bit (Win) Editor Installer.

    2. Next install the UWP Runtime.

    3. Finally, optionally install the offline documentation.
    Build Information:
    This build is currently based off Unity 5.4 Beta 10. Release Notes for Beta 10 can be found here.

    Step 2 will give the UWP runtime installer for unity
     
    Last edited: Apr 4, 2016
  3. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,478
  4. Deleted User

    Deleted User

    Guest

    I wanted to add that this error occurred to me upgrading Visual Studio to 15.6. Unity failed building for UWP missing windows.winmd and Visual Studio did not find a lot of SDKs.
    Reinstalling the Windows 10 SDK for UWP C# and any additional packages Visual Studio mentioned as missing after that solved the problem.