Creating a New Windows Phone Project

October 21, 2011

Once you have sketched out the pages of your application and defined the navigation flow, you can get started building your application in Visual Studio 2010 Express for Windows Phone.

You Will Learn

  • How to create a new Windows Phone project in Visual Studio.

Applies To

  • Silverlight for Windows Phone OS 7.1


To get started, you can create a new Windows Phone project. Visual Studio includes several project templates. The Windows Phone Application project template is a starting point for all phone project templates, so it is the most common one to use. For more information about these templates, see Using Phone Application Project Templates for Windows Phone.

To create a new Silverlight for Windows Phone project

  1. Make sure you have installed the Windows Phone SDK.

  2. In Visual Studio, create a new project.

  3. In the New Project dialog box, click Silverlight for Windows Phone and then select a project template.


  4. You will then be invited to choose the version of the Windows Phone Platform that you want to target.


After you create the project, Solution Explorer will be similar to the following illustration.


A C# Silverlight for Windows Phone project contains the following files:

Project File



This is the application manifest file that is required to generate the application package. It defines the assemblies that are in the XAP package. You typically do not need to edit this file.


This file contains the name and version metadata that is embedded into the generated assembly.


This is the application manifest file that contains phone application metadata. This file is primarily used in the Windows Phone Marketplace submission process. For more information about this file, see Application Manifest File for Windows Phone.

App files

These files are used to specify application-level logic such as defining the entry point for the application and initializing application-scoped resources, The App class is required to display the user interface.


This file is the default start page that is used to create the user interface.


This code-behind file contains the logic for the default start page. The MainPage class derives from PhoneApplicationPage.




These are the default icon and image files that you can replace with your own.

Next Topic | Previous Topic | Home