Thanks for your continued support on the successful series on Learning Windows Phone 7 Development in 31 days, it was really nice to see the comments and feedback from the readers. Now we are going to see a series on 101 How to on Windows Phone 7 development. This series is going to be a quick reference guide for the development activities that we are going to use on to the day to day activities. This series of articles are going to specific to the task and will not have 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 the valuable comments and feedback to improve further. [more]
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. Application 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 simple steps.
Open Visual Studio 2010 IDE in administrator mode and we create a new Silverlight for Windows Phone project as shown in the screen below.
On 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 anytime we can do the same by going to the properties and changing it straight forward. To do that, we need to open 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 per the requirement as shown in the screen below.
Selecting 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 we can see if everything is working on good.