Setting Up a Microsoft Surface Development Environment
When you develop Microsoft Surface applications, you can work directly on a Microsoft Surface unit or you can work on a separate workstation:
-
On a unit, you can use the Microsoft Surface SDK to develop and test Microsoft Surface applications directly.
You can run the unit in two modes. In administrator mode, you can access all of the Windows Vista functionality. In contrast, user mode demonstrates how the unit appears in a commercial venue. That is, the unit suppresses the Windows Vista user interface, automatically starts required applications, and makes sure that those applications are restarted if they need to. Typically, you develop applications in administrator mode. -
On a separate workstation, you can install the Microsoft Surface SDK and use the Surface Simulator tool to simulate a Microsoft Surface test environment. You can then use one or more mice to simulate contacts on a Microsoft Surface unit. Surface Simulator runs the Surface Shell and the applications that you develop. However, there are differences between Surface Simulator and an actual unit. For example, cameras are not available in Surface Simulator. If you write an application that uses raw camera input, you cannot test it by using Surface Simulator.
To set up your development environment, see one of the following sections:
-
Developing Microsoft Surface Applications on a Microsoft Surface Unit
-
Developing Microsoft Surface Applications on a Separate Workstation
Upgrading from Visual C# Express to Visual Studio
If you are using Microsoft Visual C# 2008 Express Edition for your Microsoft Surface development environment, you can later change to Microsoft Visual Studio 2008, but the Microsoft Surface SDK project templates are not automatically registered with Visual Studio 2008. You must "repair" the Microsoft Surface SDK installation to register the templates with Visual Studio 2008.
To register the Microsoft Surface project templates with Visual Studio 2008
-
Open Control Panel, and then open the Programs and Features item.
-
In the list of programs, right-click Microsoft Surface SDK 1.0 SP1, and then click Change.
-
In the setup wizard, click Next, and then select the Repair button.
-
Follow the rest of the prompts to repair your installation.
During the repair operation, the Microsoft Surface SDK project templates are registered with Visual Studio 2008 and Visual C# Express 2008, as applicable.
You can also manually register the Microsoft Surface SDK project templates by running devenv.exe from the Visual Studio templates directory.