Hello everyone.

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.
Options

Opening outside application from hololens app

Is it possible to open, run, and utilize text output from an outside program from hololens? If I had my hololens on the same wireless network as a computer, is there a way to run a commandline program on the computer from the hololens?

I was initially writing scripts in Visual Studio using System.Diagnostics to start a new Process, but I keep getting an error when trying to build in Unity-- "The type or namespace name 'Process' could not be found (are you missing a using directive or an assembly reference?)" I am inside the System.Diagnostics namespace when using the Process code. I don't have any errors in visual studio, only in unity.

Thanks so much!

Best Answer

Answers

  • Options
    edited August 2016

    In Unity, you just need to wrap that code in a

    ' #if WINDOWS_UWP '

    ' #endif '

    and then you shouldn't have any issues with Unity, as unity will ignore that code

  • Options

    @Jesse_McCulloch I tried wrapping just the process declaration and instantiation in that, but then the other calls to it couldn't see it. When I wrapped all of the code involving the process, I continued getting the same error :/

Sign In or Register to comment.