Building and running

Wow! That was fun, wasn't it? Now we're ready to build a Visual Studio project:

  1. In Unity, use the File | Build Settings window and press Build.
  2. Specify a folder to put the project files. As mentioned in Chapter 2, Setting Up Your System, I'd like to make a folder named Build and then make a subfolder for this build; let's call it hololens-cube.
  3. Now open the project in Visual Studio.
  4. An easy way is to navigate to the Build folder in File Explorer and look for the .sln file for the project (.sln is for the Microsoft solution file). Double-click it to open the project in Visual Studio.

We have a few settings to set here too:

  1. Change the solution configuration selector from Debug to Release.
  2. Set the target to x86.
  3. Set Device to your target device. In the following example, we selected HoloLens Emulator 10.0.14393.0.
  4. If using a physical HoloLens device, select Remote Machine and you will be prompted to enter the IP of the device to run on; select Universal (Unencrypted Protocol) for Authentication Mode.

The Visual Studio settings are as follows:

  1. Finally, select Debug | Start Debugging.

The following image is of the emulator open next to Visual Studio that is launching the app:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.22.242.141