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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Building Universal App for Windows 10 - error opening VS 2015 project

Discussion in 'Windows' started by Grisu1004, Sep 28, 2015.

  1. Grisu1004

    Grisu1004

    Joined:
    Aug 25, 2015
    Posts:
    7
    I am using Unity 5.2.1p1 (64 bit) and I managed to build a Universal 10 application without errors.
    But opening the project results in hundreds of error messages in the vs console.

    Reason is that some dll's couldn't be referenced.

    In my project the following references are not found:

    Assembly-CSharp
    UnityEngine
    WinRTLegacy
    UnityEngine.UI
    UnityEngine.Networking
    System.Runtime.dll

    There was a similiar problem (or at least it seems similiar to me) before the last patch when building a Universal 8.1 Project (which is now working correctly).

    B.t.w the same Project builds correct for Android, Windows Universal 8.1 and Windows stand alone.
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,507
    Those errors should go away when you build the project. VS can't resolve the references before you build for the first time.
     
    H-GameProgrammer likes this.
  3. Grisu1004

    Grisu1004

    Joined:
    Aug 25, 2015
    Posts:
    7
    Thanks alot - you are right, it worked!
     
  4. Heymi

    Heymi

    Joined:
    Oct 30, 2014
    Posts:
    2
    I am using Unity 5.2.3 (64 bit) and I also build a Universal 10 application without errors.
    But opening the project giving an error in the console.

    error : Object reference not set to an instance of an object. :(
     
  5. Heymi

    Heymi

    Joined:
    Oct 30, 2014
    Posts:
    2
    when i tried "build & run" Now i am getting this error in unity editor console:

    Exception: Failed to build Visual Studio project using arguments 'C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe "C:\Users\Humayun\Desktop\U\Juicy Fruits.sln" /nologo /maxcpucount /p:Configuration=Master /p:platform=x86 /p:SolutionDir="C:\\Users\\Humayun\\Desktop\\U\\" /t:Build /clp:Verbosity=minimal'.
    Output: UnityInstallationDir "C:\Program Files\Unity\Editor".
    UnityWSAPlayerDir "C:\Program Files\Unity\Editor\Data\PlaybackEngines\metrosupport".
    UnityProjectDir "C:\Users\Humayun\Documents\Juicy Fruits".
    Copying unprocessed assemblies...
    C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1966,5): error MSB3786: There was a problem retrieving the installed SDKs on the machine. Version string portion was too short or too long. [C:\Users\Humayun\Desktop\U\Juicy Fruits\Juicy Fruits.csproj]
    C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1966,5): warning MSB3785: No SDKs were found. SDKReference items will not be resolved. If your application requires these references there may be compilation errors. [C:\Users\Humayun\Desktop\U\Juicy Fruits\Juicy Fruits.csproj]


    ApplicationLauncherImpl.RunMSBuild (System.String args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:290)
    ApplicationLauncherImpl.Build () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:174)
    ApplicationLauncher.BuildAndRun (BuildLaunchPlayerArgs args, WSASDK wsaSDK) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:56)
    ApplicationLauncher.BuildAndRun (BuildLaunchPlayerArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:46)
    UnityEditor.Metro.BuildPostprocessor.LaunchPlayer (BuildLaunchPlayerArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:72)
    UnityEditor.PostprocessBuildPlayer.Launch (BuildTarget target, System.String path, System.String productName, BuildOptions options) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:282)
    UnityEditor.HostView:OnGUI()
     
  6. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,672
    You're missing Windows 10 SDK
     
  7. Overbook

    Overbook

    Joined:
    Jul 6, 2015
    Posts:
    10
    Same here!!! I can't build my project to Windows Store!
     
  8. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,507
    Check this thread:

    http://forum.unity3d.com/threads/warning-do-not-update-to-windows-sdk-10-0-10586-0-just-yet.371074/