- Home /
How can I access full .NET namespaces?
I'm trying to use a C# implementation of the Bayeux protocol for the multiplayer part of my game aimed for iOS and Android. My version of Unity is 4.6.2. I have found an implementation on GitHub, but Unity won't compile it because it is using these namespaces:
using System.ServiceModel.Web;
using System.Runtime.Serialization.Json;
using System.Web.Script.Serialization;
From what I've gathered, they are .NET namespaces not included in Unity for portability reasons.
How can I include these namespaces in my game? If it can be done, will they work on iOS and Android?
Or should I rewrite the C# implementation parts that are using these namespaces?
Just to check - have you selected full .NET support, not the subset in the Player settings?
Yes I did, both in the Player Settings and Visual Studio's settings. The error disappears in VS if I select .NET 3.5 (which is the compatibility I need for the implementation I found), but not in the Unity Editor.
Your answer
![](https://koobas.hobune.stream/wayback/20220613195620im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Jumping while moving problem (CharacterController C#) 0 Answers
Activity Indicator Centered 0 Answers
Adjusting UI to cellphone screen size 0 Answers
about Facebook SDK AppRequest.. 0 Answers