Windows Phone 8 Beginner's Tutorial (eight) understanding compilation and deployment

Source: Internet
Author: User

Original address:

http://channel9.msdn.com/Series/Windows-Phone-8-Development-for-Absolute-Beginners/ Part-8-understanding-compilation-and-deployment

Series Address: Http://channel9.msdn.com/Series/Windows-Phone-8-Development-for-Absolute-Beginners

Source CODE:HTTP://AKA.MS/ABSBEGINNERDEVWP8

PDF version:http://aka.ms/absbeginnerdevwp8pdf

If you recall the C # base series (C # Fundamentals series), the C # compiler compiles code in your project to create one. NET assemblies. The end result usually (at least in the case of a simple console application) is a suffix named ". exe" executable file. Although we deal with the debug version of the application in Visual Studio, you can change the solution configuration to publish (release) as long as the same version is installed on the user's computer. NET Framework is running, we can create an application version that is appropriate for publishing to another user's computer.

In this lesson, I'll discuss how to deploy our built applications to a physical device running the Windows Phone 8 operating system. So far, we've only deployed the application to the phone simulator. The compilation and deployment steps are automated for us, and we don't know how the program is packaged and installed on the emulator. We need to understand how applications are packaged, because there is no doubt that we need to deploy the applications to physical mobile devices for testing, and we need to package the applications so that they can be submitted to the Windows Store for review, download, or sales.

So our plan for this lesson is:

I hope we can see what happens when the application is compiled, what does Visual studio create? The result is that we can learn something about the deployment process.

I want to deploy to a physical mobile device to view the PetSounds application running on a real phone.

1. What happens during compilation and deployment

Visual Studio creates a debug version of the application each time you press the F5 key on the keyboard or the Run button on the toolbar to run the application. If you recall the C # Base series, it creates a bin\debug folder to hold the. NET assembly and any other files that are required to run the application. This is the Bin\Debug folder for the PetSounds application:

Here's A. NET assembly PetSounds.dll, a file that can be ignored petsounds.pdb (it is used for coordination between the Visual Studio debugger and the running version of the application). There are also folders that match the folders in the Visual Studio project, such as the Assets folder, which holds the Appresources.resx Spanish version of the ES folder and the Properties folder. Then there is a appmanifest file and a petsounds_debug_anycpu.xap file.

this. xap file is large (6MB). I happen to know this file suffix indicates that it is a deployment package. It is a file containing all the files and configurations that are used to deploy the application to the Windows Phone 8 operating system.

Let's have some fun again! I copy the file to the desktop, right-click the file, and select Copy.

I right click on the desktop and select Copy.

Once the file appears on my desktop, I right click on it and choose Rename.

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/extra/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.