Logo
PREGNANCY
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
 
 
Windows Phone

Deploying the Windows Phone 7 Application on the Device

6/28/2011 4:24:50 PM

1. Problem

You want to deploy your application to the Windows Phone 7 device because you have to test the sensors' functionalities.

2. Solution

You have two ways to deploy your application to the phone: using either Visual Studio 2010 or the Application Deployment tool.

3. How It Works

In both cases, you have to download and install the latest version of Zune software from www.zune.net/en-US/. Zune is an entertainment device—initially available only in the United States—and it is Microsoft's response to Apple's iPod family of devices. You can transfer your music and videos by using the Zune software, but you can use it to deploy your software too.

Moreover, in both cases, you have to unlock your Windows Phone device with a developer license. You can obtain a license from Microsoft's App Hub site at http://create.msdn.com/en-us/home/membership by paying an annual $99 fee. In the registration, you will associate your Windows Live ID account with an App Hub identifier. This coupling of data is necessary to unlock your Windows Phone device with the help of the Windows Phone Developer Registration tool, which you find within the tools installed with the Windows Phone Developer Tools (see Figure 1).

Figure 1. The Windows Phone Developer Registration tool used to unlock your phone and deploy applications

NOTE

As you can see in Figure 1, Zune software is required to unlock the Windows Phone 7 device.

Okay, after completing these mandatory steps, your device is ready to receive your application. From Visual Studio 2010, you simply have to change the target combo box from Windows Phone 7 Emulator to Windows Phone 7 Device.

4. Usage

Now, as usual, you can press F5 to start a debug session or press Ctrl+F5 to start the application without the debug. Visual Studio 2010 will compile your application, start Zune software to connect to the Windows Phone device, copy the XAP file to the device, and finally run the application. In your device, you will see your application running.

NOTE

The October 2010 update of the Windows Phone Developer Tools includes the WPConnect.exe program. When your application uses the Windows Phone media library or plays a song, it will find those resources locked by Zune software. You have to close Zune software after having connected the phone and then run WPConnect.exe. The device will remain connected, but now you have full access to the phone device.

The second method to deploy your application on the Windows Phone device is to run the Application Deployment tool (see Figure 2).

Figure 2. The Application Deployment tool used to deploy your application without Visual Studio 2010

The target combo box contains both device and emulator targets. The XAP text box contains the path of your application's XAP file. When you compile your application, Visual Studio 2010 creates the XAP file, which is a compressed file containing everything Windows Phone needs to run the application (EXE, DLLl, images, and so on). After you click the Deploy button, the Application Deployment tool connects to the phone and deploys the application.

Other -----------------
- Deploying the Application to the Windows Phone 7 Emulator
- Creating a Simple XNA Windows Phone 7 Application
- Creating a Simple Silverlight Windows Phone 7 Application
- Developing for Windows Phone 7 and Xbox 360 : Lighting (part 5) - Point Lights
- Developing for Windows Phone 7 and Xbox 360 : Lighting (part 4) - Fog
- Developing for Windows Phone 7 and Xbox 360 : Lighting (part 3) - Emissive Lighting & Specular Lighting
- Developing for Windows Phone 7 and Xbox 360 : Lighting (part 2) - Triangle Normals & Diffuse Lighting
- Developing for Windows Phone 7 and Xbox 360 : Lighting (part 1) - Ambient Lighting
- Developing for Windows Phone 7 and Xbox 360 : Introduction to Custom Effects - Vertex Color & Texturing
- Developing for Windows Phone 7 and Xbox 360 : Drawing with a Custom Effect
- Developing for Windows Phone 7 and Xbox 360 : Creating Your First Custom Effect & Parts of an Effect File
- Developing for Windows Phone and Xbox Live : SamplerStates
- Windows Phone 7 Development : Understanding Device Physical Security & Meeting Certification Requirements
- Windows Phone 7 Development : Implementing Data Security (part 2) - Using Rfc2898DeriveBytes and AES to Encrypt Data
- Windows Phone 7 Development : Implementing Data Security (part 1) - Using HMACSHA1 and HMACHSHA256
- Developing for Windows Phone and Xbox Live : Back to Device States (part 2) - RasterizerState
- Developing for Windows Phone and Xbox Live : Back to Device States (part 1) - The Stencil Buffer
- Developing for Windows Phone and Xbox Live : Render Targets (part 2) - Faking a Shadow with a Depth Buffer and Render Targets
- Developing for Windows Phone and Xbox Live : Render Targets (part 1)
- Windows Phone 7 Development : Implementing Network Security
 
 
Most view of day
- Windows Server 2012 Administration : Configuring Sites (part 2) - Creating a Site - Adding Domain Controllers to Sites
- Extending Dynamics GP with Free Software : Preventing date errors with DocDateVerify, Executing SQL from the Support Administrator Console
- Installing and Configuring the Basics of Exchange Server 2013 for a Brand-New Environment (part 8)
- Integrating BizTalk Server 2010 and Microsoft Dynamics CRM : Communicating from BizTalk Server to Dynamics CRM (part 3) - Building the BizTalk components
- Windows Server 2003 on HP ProLiant Servers : File Replication Service Design and Implementation (part 2) - Diagnostics and Troubleshooting Methods and Tools
- Troubleshooting Hardware, Driver, and Disk Issues : The Process of Troubleshooting Hardware Issues
- BizTalk 2010 : ASDK SQL adapter examples (part 2) - Select, Table Valued Function, and Execute Reader
- Windows Server 2003 on HP ProLiant Servers : Build Guides
- Windows Phone 8 : Configuring Basic Device Settings - Passwords and Screen Timeouts (part 3) - Changing Your Password
- Windows Phone 8 : Working with the Windows Phone Software (part 1) - Adding Photos to Your Phone
Top 10
- Windows Phone 8 : Configuring Mailbox Settings (part 5) - Configuring Automatic Replies
- Windows Phone 8 : Configuring Mailbox Settings (part 4) - Lightening the Display,Changing the Mailbox Sync Settings
- Windows Phone 8 : Configuring Mailbox Settings (part 3) - Message Signatures, Blind CCing Yourself
- Windows Phone 8 : Configuring Mailbox Settings (part 2) - Unlinking Mailboxes, Conversation View
- Windows Phone 8 : Configuring Mailbox Settings (part 1) - Linking Mailboxes
- Managing Windows Server 2012 Systems : Configuring Roles, Role Services, and Features (part 6) - Tracking installed roles, role services, and features
- Managing Windows Server 2012 Systems : Configuring Roles, Role Services, and Features (part 5) - Installing components at the prompt
- Managing Windows Server 2012 Systems : Configuring Roles, Role Services, and Features (part 4) - Managing server binaries
- Managing Windows Server 2012 Systems : Configuring Roles, Role Services, and Features (part 3) - Adding server roles and features
- Managing Windows Server 2012 Systems : Configuring Roles, Role Services, and Features (part 2) - Installing components with Server Manager - Viewing configured roles and role services
 
 
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
2015 Camaro