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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Windows.winmd not found

Discussion in 'Windows' started by AnKOu, Jan 23, 2015.

  1. AnKOu

    AnKOu

    Joined:
    Aug 30, 2013
    Posts:
    123
    Hello,

    I encountered an issue when trying to build with universal 8.1 SDK

    The build immediately fails and shows the message :

    The answer is yes, I have the Windows Phone 8.1 SDK installed.
    And I found the file it is looking for in :
    C:\Program Files (x86)\Windows Kits\8.1\References\CommonConfiguration\Neutral\Windows.winmd

    I read this thread :
    http://answers.unity3d.com/question...ler-error-when-building-wp81.html?sort=oldest

    And this :
    http://issuetracker.unity3d.com/issues/unity-doesnt-find-windows-sdk-in-non-default-directory

    I am wondering if the issue occurs because my visual studio 12.0 isn't installed on its default location path?
    The problem is that I don't have enough space on my C: and I would like to be sure that the problem come from this before reinstalling windows 8.1 and visual studio 12.0 on a larger hard drive.

    Thanks for reading.
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,527
    Which Unity version are you using?

    The file it's looking for should be in "C:\Program Files (x86)\Windows Phone Kits\8.1\References\CommonConfiguration". Not in Windows kits.

    Unity should first be first looking at your registry at "HKLM\SOFTWARE\Microsoft\Microsoft SDKs\WindowsPhoneApp\v8.1" or "HKLM\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\WindowsPhoneApp\v8.1" (former if your OS is 32-bit, latter if your OS is 64-bit). If it cannot find that, it should fallback to searching program files.
     
  3. AnKOu

    AnKOu

    Joined:
    Aug 30, 2013
    Posts:
    123
    I just finished installing Visual Studio Update 4 and it seems to finally work.

    Thanks for your reply.
     
  4. DevGallie

    DevGallie

    Joined:
    Nov 4, 2015
    Posts:
    4
    You can also get this error when on Windows 10 using Unity 5.2.1f1 and Visual Studio 2015.
    That is when the extra Visual Studio 2015 modules for Windows Phone 8.1 are not yet installed.

    You can add the modules in Control Panel -> Programs and Features -> Microsoft Visual Studio ... 2015 -> Modify.
     
    pango likes this.
  5. RafaelAlcantara

    RafaelAlcantara

    Joined:
    Mar 30, 2016
    Posts:
    11
    Sorry for unearthing this 2 years old thread but I'm facing the same problem with Visual Studio 2017.
    Until last week I was able to build Windows Store Apps with Unity 5.5.0f3 and Visual Studio 2015 but now I'm using VS2017 and always get this message when trying to build:
    "Could not start compilationException: 'References\CommonConfiguration\Neutral\Windows.winmd' not found, do you have Windows Phone 8.1 SDK installed?"
    Windows.winmd file is on the folder that @Tautvydas-Zilys had mentioned...
     
  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,527
    Did you uninstall VS2015? VS2017 does not support building for Windows Phone 8.1 - they dropped support for Windows 8.1 and Windows Phone 8.1 in it.
     
  7. RafaelAlcantara

    RafaelAlcantara

    Joined:
    Mar 30, 2016
    Posts:
    11
    Oh, I didn't know about it and uninstalled VS2015.
    Anyway, thanks for the reply @Tautvydas-Zilys !