Search Unity

Error when trying to make a build

Discussion in 'Windows' started by MrStef12, Jul 22, 2013.

  1. MrStef12

    MrStef12

    Joined:
    Jul 29, 2012
    Posts:
    2
    I can't seem to be able to build my game for the Windows Store Apps platform. Right when I start the building process, the process stops and output the following into the console:

    "Blev ikke fundet" is danish for "Was not found".

    I am using the type "D3D11 C++ Solution". I am running Windows 8 and I have tried to install Microsoft .NET Framework 4.5 which just told me I already have it. Building for PC works without any problems. What should I do?
     
  2. BFS-Kyle

    BFS-Kyle

    Joined:
    Jun 12, 2013
    Posts:
    883
    Last edited: Jul 23, 2013
  3. Meltdown

    Meltdown

    Joined:
    Oct 13, 2010
    Posts:
    5,822
    You are using Visual Studio 2010, you need to install 2012.
     
  4. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,919
    Could you check if those paths exists on your machine, for ex.,
    C:\Program Files (x86)\Windows Kits\8.0\References\CommonConfiguration\Neutral\Wi ndows.winmd ?

    Also is it me, or is there a space between 'Wi' and 'ndows.winmd' ?
     
  5. MrStef12

    MrStef12

    Joined:
    Jul 29, 2012
    Posts:
    2
    I don't know whether or not I have it installed. Where do I get it from?

    None of the paths exist. The space between "Wi" and "ndows.winmd" is something that the forums have made and I didn't notice that. It does not show up in the actual error message.
     
  6. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,919
  7. castana1962

    castana1962

    Joined:
    Apr 10, 2013
    Posts:
    400
    Hi,
    I have installed Windows 8 Ultimate Version and Windows SDK 8 (update3) in my PC and I am trying the built the AngryBots Store Apps by Unity 4.2 new version and I set the buit this one with Windows Store App and XAML C# Solution type and I got the following Error:
    INTERNAL COMPILER ERROR SEE THE CONSOLE FOR MORE INFORMATION OUTPUT WAS VISUAL C# COMPILER VERSION 4.0.30319.17929
    ERROR CS006: METADATA FILE ' C/PROGRAM FILES(X86)/WINDOWS KITS/8.0 REFERENCES/COMMONCONFIGURATION/NEUTRAL/WINDOWS.WINMD COULD NOT BE FOUND
    I have checked if the paths exists on my machine and it is here but the NEUTRAL FOLDER IS EMPTY, for it, Could anybody advice me to fix this problem?
    Thanks in advance
    Alejandro Castan
     
  8. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,919
    What Visual Studio version are you using?
     
  9. castana1962

    castana1962

    Joined:
    Apr 10, 2013
    Posts:
    400
    First thanks for your help
    Visual Studio Express 2012 for Windows phone (SDK 8 Update 3)
     
    Last edited: Jul 25, 2013
  10. castana1962

    castana1962

    Joined:
    Apr 10, 2013
    Posts:
    400
    Hi
    I installed the Visual Studio Express 2012 and I fixed the Windows.winmd error compiler but now I have the following error
    Assets/Script/Weapons/Health.js(95,17) : BCE0005: Unknown identifier: "GameScore", for it, Could anybody help me with it?
    Thanks in advance
    Best Regards
    Alejandro
     
  11. BFS-Kyle

    BFS-Kyle

    Joined:
    Jun 12, 2013
    Posts:
    883
    That looks like an error in your own scripts in your project - can't really help with that, just look at Health.js line 95 and see why it cant find your other class called 'GameScore'.
     
  12. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,919
    You're using Unityscript in your game, it's not supported in 4.2 for Windows Store Apps.
     
  13. castana1962

    castana1962

    Joined:
    Apr 10, 2013
    Posts:
    400
    Hi BSF Kyle and Tomas1856
    I understood about Unityscript problem and since I am new in Unity and sorry for mi ignorance but to fix this problem, Should I convert to C# the Health.js?
    Thanks for your help again
    Regards
    Alejandro
     
  14. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,919
    Yes, you need to convert it to C#.

    To make conversion a little easier, you could do this:
    * Build Windows Desktop application
    * Download http://ilspy.net/
    * Open it
    * Drag and drop Assembly-UnityScript.dll on ilspy window
    * Change the language to C#
    * It should show you the script in C#
     
  15. castana1962

    castana1962

    Joined:
    Apr 10, 2013
    Posts:
    400
    Hi Tomas1856,
    Thanks for your help !!!!
    Best Regards
    Alejandro
     
  16. kiriihmete

    kiriihmete

    Joined:
    Jul 25, 2013
    Posts:
    6
    Cheers Tomas!
     
  17. NandkishorLokhande

    NandkishorLokhande

    Joined:
    Apr 2, 2013
    Posts:
    1
    Hello
    I also have same problem

    Internal compiler error. See the console log for more information. output was:Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.17929

    I am using unity Unity version4.3.0.b2, Windows 8 OS, visual studio 2012

    please help :-|
     
  18. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,919
    Check C:\Program Files\Windows Kits\8.0\References\CommonConfiguration\Neutral\ please
     
  19. akkiDev

    akkiDev

    Joined:
    Aug 7, 2013
    Posts:
    70
    Hello Tomas,
    I am getting the same error :
    Could not start compilationException: 'C:\Program Files (x86)\Windows Kits\8.0\References\CommonConfiguration\Neutral\Windows.winmd' not found, do you have Windows 8.0 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:127)
    UnityEditor.Scripting.Compilers.MicrosoftCSharpCompiler.StartCompiler () (at C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/MicrosoftCSharpCompiler.cs:220)
    UnityEditor.Scripting.Compilers.ScriptCompilerBase.BeginCompiling () (at C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/ScriptCompilerBase.cs:47)
    UnityEditor.HostView:OnGUI()

    I am building the app for Windows Store Platform and SDK set to 8.0. My windows version is 8.1.
    I manually download windows SDK 8.0 on my windows 8.1 machine, but the path C:\Program Files (x86)\Windows Kits\8.0\ does not contain references folder.

    Please help.
     
  20. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,919
    Are you sure you've installed Windows SDK 8.0 correctly? Because that path must exist.
     
  21. akkiDev

    akkiDev

    Joined:
    Aug 7, 2013
    Posts:
    70
  22. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,919
    What folders do you have in C:\Program Files (x86)\Windows Kits ? I presume you already have 8.1 there, what about 8.0 ?
     
  23. akkiDev

    akkiDev

    Joined:
    Aug 7, 2013
    Posts:
    70
    Yes I have both the folders 8.0 and 8.1. Here is the snapshot of my folder : 80.png
     
  24. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,919
    Weird, you're missing References folder. Here's another thing you might try, Windows SDK 8.0 is also installed by Visual Studio 2013 for Windows, there's a checkbox during installation "Tools for Windows Store Apps 8.0" or similar, I don't remember the exact name.
     
  25. akkiDev

    akkiDev

    Joined:
    Aug 7, 2013
    Posts:
    70
    I already have installed visual studio 2013 for windows, I am able to build the app for windows store platform for SDK 8.1, Phone 8.1 and Universal 8.1, but not able to build for 8.0.
    I am using Unity version 5.0.1p1.
     
  26. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,736
    Try launching Visual Studio installer again (to repair) or reinstalling it entirely. Perhaps you need to check something in installer to get this SDK installed.
     
  27. akkiDev

    akkiDev

    Joined:
    Aug 7, 2013
    Posts:
    70
    Thanks Tomas and Aurimas for your support, Repairing VS2013 solved my problem.
     
  28. pranabss

    pranabss

    Joined:
    Sep 2, 2014
    Posts:
    7
    Hi

    Getting the same error, "Could not start compilationException: 'References\CommonConfiguration\Neutral\Windows.winmd' not found, do you have Windows Phone 8.1 SDK installed?"

    Using Unity 5.1.2 Personal, Windows 10 Home, Visual Studio Community 2015, Windows Phone 8.1 Update 1 SDK.
    Tried repairing the Visual Studio installation twice. Any help will be great. Thanks.
     
  29. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Looks like you're missing a registry value for some reason - maybe Visual Studio installation is broken?

    It's string value InstallationFolder under "HKLM\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\WindowsPhoneApp\v8.1". On my machine it points to C:\Program Files (x86)\Windows Phone Kits\8.1\.
     
    pranabss likes this.
  30. pranabss

    pranabss

    Joined:
    Sep 2, 2014
    Posts:
    7
    Yup... Visual Studio was broken. Downloaded the ISO for Visual Studio Community Free and then installed it ( Instead of the online installer ). Working fine now. Thanks!!!