The Watch example includes C# generator also for the Windows
Phone 7 platform. In order to try out the Windows Phone 7 applications generated
from the Watch example, you need to install Visual Studio 2010 Express for
Windows Phone to get the required development tools, libraries and emulator. The
package is available at
http://www.microsoft.com/visualstudio/en-us/products/2010-editions/windows-phone-developer-tools.
Download and install the SDK (if you already have Visual Studio 2010
Professional or Ultimate available in your system, only the WP7 specific
components will be installed). After the installation, edit the
$visualStudioWP7 variable in the
‘__Paths’ subgenerator to point to the correct path if
needed.
Generating for WP7 is simple, just select ‘C#:
WP7’ as the
Generation target platform and run the
‘Autobuild’ generator. You can also launch the generation from the
Visual Studio extension. After the generation, the C# code will be loaded into
Visual Studio, compiled there and executed in the Windows Phone 7 emulator (as
in
Figure 4-6).
Figure 4-6. Visual Studio extension and Windows Phone 7