The Mixed Reality Forums here are no longer being used or maintained.
There are a few other places we would like to direct you to for support, both from Microsoft and from the community.
The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.
For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.
If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.
And always feel free to hit us up on Twitter @MxdRealityDev.
How to implement touchpoints with .NET HttpClient
Hi,
i tried to implement a HttpClient on Hololens. For my GUI parts i use Unity and since Unity doesn't support .NET 4.5 i separated the HttpClient part and put it to my VS project. Now i want to call my HttpClient from a unity script. Of course unity gives an error:
Assets/Scripts/RestTest.cs(2,7): error CS0246: The type or namespace name 'RestClient' could not be found. Are you missing a using directive or an assembly reference?
So my first approach for a workaround is to use a preprocessor statement
#if UNITY_METRO && !UNITY_EDITOR //clientcode #endif
source: https://forums.hololens.com/discussion/906/http-client-with-unity
The error disappears in unity editor and i can write my code in my c# script. The problem now is, that the error reappears as soon as i try to buil my unity project for hololens.
Somebody got some help for this? Am i using the right preprocessor statement?
Thanks in advance!
Answers
@TR_HILSCHER
Following up from the other thread...
What error are you getting now?
(the one when you try and build the UWP project in VS)
What Using statement are you making conditional?
Did you include the required Reference for that namespace in your UWP project?
Windows Holographic User Group Redmond
WinHUGR.org - - - - - - - - - - - - - - - - - - @WinHUGR
WinHUGR YouTube Channel -- live streamed meetings
I found this http://www.claytoninds.com/#httpclient
You can get it from the Asset Store for free and it works as expected.
EDIT: posted to the wrong thread. Oups.