This series is going to be a quick reference guide for the development activities that we are going to use on the day to day activities. This series of articles is going to be specific to the task and will not have a step by step process since we covered most of the activities in our Learn Windows phone 7 Development in 31 days series. Hope this series will also be useful to you and please provide any valuable comments and feedback to improve it further.
Here in our first how to, we are going to see how to specify a target version for Windows Phone. Microsoft has released Windows Phone 7.0 and Windows phone 7.1 SDK where the application development can be targeted based on the needs. Applications developed with Windows Phone 7.0 can continue to run on the Windows Phone 7.1 SDK by simply upgrading to the latest version of the SDK. We can target the Windows Phone 7 OS initially at the time of developing the application by using the tool provided with Visual Studio 2010 IDE.
With Windows Phone 7.0 SDK application developed can run on the Windows Phone 7.1 SDK by simply migrating the application to the latest version, where as Windows Phone 7.1 SDK targeted application can run on the lower version where as the new features that are available with the latest version will not be available basically we have the backward compatibility to develop the applications.
Let us see how we can set the target version in the Visual Studio 2010 IDE in a few simple steps.
Open Visual Studio 2010 IDE in administrator mode and create a new Silverlight for Windows Phone project as shown in the screen below.
After providing the project name and the location, clicking on OK will get the Target version pop up to select the Windows Phone SDK version which the application is targeted (Basically Windows Phone 7.0 or Windows Phone 7.1) as shown in the screen below.
Now selecting the platform which is required for the development will target the respective SDK and we can proceed with the features that are available with the respective SDK. If we want to upgrade from the Windows Phone 7.0 to Windows Phone 7.1 SDK at anytime, we can do the same by going to the properties and changing it. To do that, we need to open the Windows Phone 7.0 application in Visual Studio 2010 IDE and select the properties of the project (Right Click on the project and select properties) and you can see the Target Windows Phone OS Version on the right side where you can change it as shown in the screen below.
Selecting the Windows Phone OS 7.0 or 7.1 upgrade, we can see the upgrade dialog box which confirms the upgrade as shown in the screen below. Click on Yes and proceed further to upgrade to the respective versions.
If we are going to target an application development that runs both on Windows Phone 7.0 and Windows phone 7.1, we can create an application in Windows Phone 7.0 and run the application in both the versions test devices and check to see if everything is working.
Thanks for reading this tutorial and providing continuous support.