Author Topic: Can't compile for UWP (HoloLens)  (Read 455 times)

brookman

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Can't compile for UWP (HoloLens)
« on: January 28, 2018, 05:05:49 PM »
Hello everyone.
I recently bought TNet to sync my apps between multiple AR devices over a local network.
The library is great and works fine on Android (Google Tango) and on desktop.
However I can't get it to compile on the HoloLens (UWP?, WSA?, .Net core?). I'm getting the following errors:

  • Assets\TNet\Common\TNSerializer.cs(17,36): error CS0234: The type or namespace name 'Formatters' does not exist in the namespace 'System.Runtime.Serialization' (are you missing an assembly reference?)
  • Assets\TNet\Common\TNTools.cs(1259,38): error CS0246: The type or namespace name 'ParameterizedThreadStart' could not be found (are you missing a using directive or an assembly reference?)
  • Assets\TNet\Common\TNTools.cs(1275,38): error CS0246: The type or namespace name 'ThreadStart' could not be found (are you missing a using directive or an assembly reference?)
  • Assets\TNet\Server\TNTcpLobbyServer.cs(28,13): error CS0246: The type or namespace name 'TcpListener' could not be found (are you missing a using directive or an assembly reference?)
  • Assets\TNet\Server\TNGameServer.cs(108,13): error CS0246: The type or namespace name 'TcpListener' could not be found (are you missing a using directive or an assembly reference?)

It seems like UWP has no implementations for "System.Runtime.Serialization.Formatters.Binary", "System.Threading.ParameterizedThreadStart", "System.Threading.ThreadStart" and "System.Net.Sockets.TcpListener".

Is there any chance that TNet could be adapted to work on the UWP platform? Or should I look for an alternative?

Thanks in advance!
- brookman