Microsoft HoloLens Developer's Guide
上QQ阅读APP看书,第一时间看更新

Your very first application

I assume that you have your environment set up and you have Visual Studio running. Let's start with our first program. Just follow along:

  1. Choose File | New | Project. In the templates, select Visual C# | Windows | Universal | Holographic | Holographic DirectX 11 App (Universal Windows):
New Project wizard in Visual Studio
  1. After this, you will get a version selector. The versions displayed depend on the SDKs you have installed on your machine. For now, you can just accept the defaults, as long as you make sure that the target version is at least build 10586.
SDK version selector
  1. Name the project and the solution HelloHoloWorld.

That's it! Congratulations! You have just created your very first HoloLens application. Granted that it is not very spectacular, but it does what it needs to do.

As a side note, I will use the term "app" from now on to distinguish mobile or holographic applications from-full-blown applications that run on desktop computers. The latter are usually called "applications", whereas the former, usually smaller items, are called apps.