Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

[RESOLVED] Win10 UWP - Unity 5.2 System.Runtime issue

Discussion in 'Windows' started by sstrong, Sep 11, 2015.

  1. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    2,271
    Cannot build a Win10 UWP Unity 5.2 project in VS2015 (14.0.23107.0 D14REL).

    Cannot resolve Assembly or Windows Metadata file 'System.Runtime.dll'

    Here is what is included in the csproj file that gets created from Unity:

    <Reference Include="System.Runtime">
    <HintPath>C:\Users\[MYLOGIN]\.nuget\packages\System.Runtime\4.0.20\ref\dotnet\System.Runtime.dll</HintPath>
    </Reference>

    The file exists at that location. In VS2015, in the Object Browser, I can see System.Runtime and the Assembly location is the same as the <Reference Include...> above.

    I tried uninstalling the Windows SDK 10.0.26624 and reinstalling but it had no effect.

    Any idea how I can resolve this reference issue and get the project to build in VS?
     
  2. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    2,271
    Resolved in VS Tools\Options\NuGet Package Manager\General - tick "Allow NuGet to download missing packages" and "Automatically check for missing packages during build in Visual Studio"
     
  3. Guhanesh

    Guhanesh

    Joined:
    Aug 3, 2013
    Posts:
    7
    Already both options ticked.Still same error "Cannot resolve Assembly or Windows Metadata file 'System.Runtime.dll"
     
  4. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,956
    Windows SDK 10.0.26624 doesn't exist, is this a typo, the latest Windows SDK is 10.0.10586?

    Also, could you check if the empty project works fine. Additionally try latest 5.3 patch release http://unity3d.com/unity/qa/patch-releases
     
  5. ev3d

    ev3d

    Joined:
    Apr 19, 2013
    Posts:
    327
    I am having this issue in 5.5 p3