Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I deploy an application to Hololens without VS?

I've developed an application for Hololens, so the only way I know to install the application in hololens is by visual studio, so I want an application package to be able to install without needing Visual Studio. I tried to follow this tutorial here

"https://docs.microsoft.com/pt-br/windows/uwp/packaging/create-app-package-with-makeappx-tool"

but I can not find these two .appx and .appxsym files.

If anyone knew, I appreciate that.

like image 535
Bruno Araujo Avatar asked Dec 04 '17 12:12

Bruno Araujo


1 Answers

Maybe you know some steps, but I will go the full way (it's only deploying without visual Studio):

  • In Unity:

    • File> Build Settings
    • Choose Universal Windows Plattform (older Versions Windows Store). Make sure your settings are right (for hololens, sdk enabled...)
    • hit "Build"
    • Now you have to select a Folder to build. In my Projects I create just an "App" Folder
  • Once it is build navigate to this Folder (if it's not opening automatically).

    • Open the Solution (in the App Folder, not the Unity one)
    • In the Explorer right Click on the "Project Properties" which are named like your Project and Select "Store>create App Package (or maybe build, i got it on German)"
    • If you want only the appx File select "no" at the Windows Store question
    • Select an Output Folder and Version Number (count's up itself, newer numbers will overwrite older versions on Hololens automatically) and for Hololens only select x86 (the others are not needed. Just consume time). Now hit the "create"(again i hope i translate it right) Button.
  • Apply on Hololens:
    • Connect the hololens via USB (you can do it with wifi too, but not in our Network, so i never tried)
    • Open a browser and type "127.0.0.1:10080" so you get access to your hololens
    • Navigate to "System>Apps" and under Install App select the appx file (in my case under: (myUnityProject/App/AppPackages/myUnityProject/myUnityProject_1.0.0.0_Win32_Master_Test)
    • First time deploying select the dependencies (Dependencies/x86)
    • Hit "go" to Deploy (wait until everything is uploaded)

Some Notes:

To build the Apps i needed mvs 2015 installed (just installed), but this was before the Fall creators Update. Now newer Versions (should) work fine. Also I needed to install the windows "buildtools 2015" https://www.microsoft.com/de-de/download/details.aspx?id=48159

Hope it works and have fun!

like image 79
LosKartoflos Avatar answered Oct 14 '22 05:10

LosKartoflos