This chapter discusses the Watch Example C# generator, the
integration with Microsoft Visual Studio using an additional extension plug-in,
and how to generate code for Windows Phone 7 applications.
If you have been trying out the Watch example on Windows,
you are already familiar with the C# code generation – that’s the
default one for all Windows versions and the generated C# code compiles and
executes out-of-the-box without needing to install any additional components.
For a more fully-fledged development solution it is also possible to integrate
MetaEdit+ with Microsoft Visual Studio. The simplest form of integration is to
load the generated code into Visual Studio, compile it there and use Visual
Studio’s facilities to run and debug it. This kind of workflow works even
with the cut-down Visual Studio Express. We do, however, recommend Visual Studio
users to use the additional extension plug-in for Visual Studio, to take full
advantage of the integration with MetaEdit+ by enabling users to access the
MetaEdit+ models and code generators directly from the IDE. The installation and
usage of the extension requires Visual Studio Professional, and is explained in
Section
4.2.