How To Run HoloLense In Visual Studio 2015 Update 2

Introduction
 
HoloLense is called to the virtual reality. HoloLense embraces the virtual reality and augmented reality to create a new type—mixed reality. Virtual reality immerses you in a simulated world.  Augmented reality overlays the digital information of your real world. By understanding your environment, mixed reality enables holograms to look and sound as they are part of your world. In HoloLense app, we run the Windows Universal App. it will be the Windows 10 App Development Kit. The HoloLens app is very easy to develop in the Visual Studio 2015.
 
Prerequisites
  • Visual Studio 2015 update 2.
  • HoloLense Kit(or) HoloLense Emulator.
Steps 
 
It is easy to learn the HoloLense app development . The following steps are required to be followed:
 
Step 1
 
Go to the Visual Studio 2015 update 2 and install HoloLense development kit (sdk).
 
Open Visual Studio New-->New project -->select Visual C# --->select Windows -->Universal -->select Blank Windows Universal App and give your app a name (ex: sample).
 
In the blank Windows universal app, you can develop any type of app in the HoloLense, Mobile app, Windows app, and IoT. This is the feature of Windows Universal app.

Blank windows universal app

Step 2
 
Next step is to select the version of the Windows 10 SDK version (Windows 10 Build 10240). This version supports new Visual Studio update 2.
 
Minimum version Windows 10 Build :10240
Maximum version Windows 10 Build :10240
 
version  
 
Step 3
 
Next step is the designing part or the coding part.
 
Go to the Solution Explorer. Solution Explorer has all app pages available and all sources will be there (Ex: images, files).
Now, go the MainPage.xaml and subsequently, go to designing the UI page (user interface). Double click to open the MainPage.xaml. It will open after you design the UI.

solution explorer
 
Step 4
 
After opening the MainPage.xaml, go to the tool box window. In the tool box, it has many types of components available (ex: text box, radio button, label, image box, scroll bar). Select the TextBlock in the text block and is called the label in the Windows universal. Name it as TextBlock. Drag and drop the TextBlock in the MainPage.xaml. It will automatically come to the MainPage.xaml.

tool box window  
 
Step 5
 
After dragging and dropping of the TextBlock, you will edit the TextBlock text. You can go to the Properties window. In the Properties window, there are available properties of the TextBlock, Also, all the tool properties will be there. Properties window will help edit your TextBlock or other components. Next, you will replace the text of TextBlock (Ex:Hello world). It automatically changes the MainPage.xaml.
 
TextBlock
 
Code
 
This code edits or replaces the TextBlock Text (Ex:Hello World). 
  1. <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">  
  2.     <TextBlock x:Name="textBlock" HorizontalAlignment="Left" Margin="144,315,0,0" TextWrapping="Wrap" Text="Hello World" VerticalAlignment="Top" />   
  3. </Grid>   
Step 6: Next step is Run stage.
 
You can run it on the local machine. Go to the top of Visual Studio Run menu. In this menu, many types of run devices are available (ex:local machine, Device (Windows 10 Mobile), Remote Machine (IoT), Emulator, HoloLense Emulator ). Select the local machine.

Local machine 
 
Step 7: It will take some time. Since it is running first time, it takes some time and you will see your app running in your local machine.
 
Local machine
 
Step 8: Your app will work on your local machine.

Thus, go to run the HoloLense device (or) HoloLense emulator. You have the HoloLense enabled in the developer mode. Afterwards, you will run the HoloLense device. If you don't have HoloLense, go to "Download the Hololense emulator" from (developer.microsoft.com).

Next, download and install the emulator.

install  
 
Step 9: Next, go to the Configure manager to configure the HoloLense emulator. In the HoloLense, emulator is compatible with your device's RAM size and you need to configure the HoloLense emulator.
 
Step 10: HoloLense Run part.
 
Your app will run your on your device or HoloLense emulator. Go to the top of the Visual Studio on the Run button. In the Run tab, select many devices, available in the run (Ex: Local Machine, Device (Windows 10 mobile), Simulator, Remote Machine (IoT), HoloLense Emulator). If you have the HoloLense, select and run or select the Hololense emulator and run your app.

run your app 
 
It will take some time to run the HoloLense emulator.
 
Summery: In the article, we have learned how to run the HoloLense Emulator App.


Similar Articles