- Home /
Unity 2017.3 Experimental 4.6 .NET not including System.Web.Http assembly for HttpClient use
Hey,
I am using Unity 2017.3.0f3. In my current project, I have set the .NET framework to the experimental 4.6 .NET framework, in order to gain support for newer classes such as HttpClient. The problem is, however, that the Unity project refuses to find the System.Net.Http namespace, even after restarting both Unity and the code editor :/
I found the following post: HttpClient Issues, where a Unity official states that Unity should find this assembly by default. It doesn't seem to do that however. Also, in that same thread it is suggested to include a mcs.rsp file referencing the required assembly as such: -r:System.Net.Http.dll
However this doesn't seem to work either...
Is there something I'm missing? Can I reference required assemblies in other ways?
Unfortunately when I drag the assembly into the project, it does indeed appear in the .NET project. In the Unity editor, however, I get an error in the console saying "loading script assembly failed". Not sure what exactly this is supposed to mean?
Your answer
Follow this Question
Related Questions
System.Threading.Tasks 1' does not exist in the namespace 'System.Threading.Tasks' 1 Answer
Managed Plugin with System.Device assembly gives error 1 Answer
what are the basic rules off making a lan server 1 Answer
How to set a Cookie with UnityWebRequest? 1 Answer
How To Sync Scale in UNET 2 Answers