Search Unity

  1. Read here for Unity's latest plans on OpenXR.
    Dismiss Notice

[Hololens] Building for UWP fails. Missing reference

Discussion in 'AR/VR (XR) Discussion' started by gogo199432, Nov 9, 2017.

  1. gogo199432

    gogo199432

    Joined:
    Apr 20, 2013
    Posts:
    86
    Hey everybody,

    so I'm trying to build for Hololens which needs the app as a UWP. Now I have several errors, and all of them are complaining about the System library. I have read that Unity is supposed to automatically switch to the WinRTLegacy.dll, but it doesn't seem to be doing that despite it existing. A screenshot of the error and a small part of the actual code are below
    Unbenannt.png
    Code (CSharp):
    1. using System;
    2. using System.Collections;
    3. using System.Collections.Generic;
    4. using System.IO;
    5. using System.Net;
    6. using System.Net.Sockets;
    7. using System.Threading;
    8. using UnityEngine;
    9. public class TCPServer : MonoBehaviour
    10. {
    11.  
    12.      public static ManualResetEvent allDone = new ManualResetEvent(false);
    13.      TcpListener server;
    14. ...
    15. }
    This is a "repost" of a question over at answers.unity, in case someone knows here what's going on.

    PS.: if this isn't the right thread, I'm sorry. Hopefully a kind moderator can move it in the right category in that case
    .
     
unityunity