Show in Frame No Frame
Up Previous Next Title Page Contents Search

4.3 Watch Example and Windows Phone

The Watch example includes C# generator also for the Windows Phone platform. In order to try out the Windows Phone applications generated from the Watch example, you need to install Visual Studio 2015 (either Community, Professional or Enterprise edition) to get the required development tools, libraries and emulator. This package – like all other Visual Studio downloads – is available at http://www.visualstudio.com/downloads/download-visual-studio-vs. Download and install the IDE and the required libraries, add-ons and updates for Windows Phone Development (like the WP emulators). After the installation, edit the $visualStudioWP variable in the ‘__Paths’ generator to point to the correct path if needed.

Generating for WP is simple, just select ‘C#: WP’ as the Generation target platform and run the ‘Autobuild’ generator. You can also launch the generation from the Visual Studio extension. In order to provide compatibility with older versions of Visual Studio and the Windows Phone platform, the Visual Studio project file will be generated in Visual Studio 2010 format – the newer versions will can automatically convert and use this project file as well (you may need to accept a few dialogs during the conversion process).

After the generation, the C# code will be loaded into Visual Studio, compiled there and executed in the Windows Phone emulator (as in Figure 4-6).

Windows Phone

Figure 4-6. Visual Studio extension and Windows Phone


Show in Frame No Frame
Up Previous Next Title Page Contents Search