So you just built your HoloLens app using Visual Studio and now want to test and deploy it.To test your HoloLens app, you may use the HoloLens Emulator.
If you have a HoloLens device and want to deploy your app to the device, follow these steps.
Using USB:
Simplest way to deploy a HoloLens app to a device is, connect your USB to your machine.
  • Connect your device to your machine
  • Select Debug, x86, Device
  • Select Start without Debugging
  • The first time you deploy, you will be prompted for a PIN.
On the HoloLens, generate a PIN by launching the Settings app, go to Update > For Developers, and tap on Pair. A PIN will be displayed on your HoloLens; type this PIN in Visual Studio when asked.
Using Wi-Fi:
  • Go To HoloLens Settings and make sure Windows 10 has Developer Mode turned on.
  • Go to HoloLens Settings > WiFi and get the IP address of the device.
  • In Visual Studio, build mode to Release, x86, and Remote Machine.
  • Build the solution and select Deploy in Visual Studio by right-clicking on the project in Solution Explorer and select Deploy.
  • The Deploy will ask you the IP address of the device. Provide the IP address.
  • Wait for a while and watch the Visual Studio Deploy progress.
Once successfully deployed, you will see a message, and the app will appear on the HoloLens device.
If have not built any HoloLens apps, try Getting Started With HoloLens App here >