Today is a great release day. We’ve launched everything you need to write Windows Phone 7 applications. Not only that, but we’ve also released XNA 4.0 not only for phone, but for all supported XNA platforms.
Visual Studio Tools for Windows Phone 7
Today, we released the production version of the Visual Studio Tools for Windows Phone 7. These are the only tools you’ll need for building Windows Phone 7 Applications with Visual Studio 2010 and Expression Blend 4.
If you were working with the Beta, the very good news is that there are not many breaking changes (see the table below) and so upgrading should be very quick.
Please note that all of the Windows Phone for Silverlight Developers and iPhone To Windows Phone 7 Tutorials and Videos will be upgraded to this release within the next few days. If you run into issues, please feel free to contact Jesse.Liberty@microsoft.com
From the release notes, here are the breaking changes from the beta.
|Updating applications created with earlier versions of Windows Phone Developer Tools||Changes have been made to the WMAppManifest.xml and template files. Now that manifest validation has been turned on, you may need to update these files in your older projects. A number of the changes are listed here. However, you can also compare the WmAppManifest.xml, app.xaml and app.xaml.cs files in a new project to the same files in your old projects to determine what has changed and then update your old files accordingly.
The following list shows changes you must make to the WmAppManifest.xml file:
The following list shows changes you must make to the App.xaml file:
Note: The recommended option for updating this file is to obtain a copy of the most recent version. Using your old file, copy the information specific to your application (such as, resources) to the new file.
The following list shows changes you must make to the app.xaml.cs file:
|Limit to the number side loading of applications on the phone||Developer phone registration is the process through which a registered Windows Phone® developer may unlock a retail Windows Phone to side load applications for development and testing. A limit on the number of side loaded applications that may concurrently be installed on the phone will be enforced. The default limit will be 10 applications. Attempts to side load more than 10 applications will result in an error. This limit does not affect applications installed via Windows Phone® Marketplace.
|XNA Framework assembly references||The public key token for XNA Framework assemblies has changed. Assembly references in content projects and game projects created using previous releases of Windows Phone Developer Tools must be updated to work correctly. You can do this by removing and re-adding references that do not resolve correctly using the References node in the Visual Studio Solution Explorer.
|Character encoding.||Support for all character encodings will be removed, except for those in the following list.
Use of an unsupported encoding value in an application will result in an ArgumentException exception. You must modify existing applications to remove references to unsupported encoding values. XML data should specify only supported encodings. For example:
|A GamerPrivilegeException is returned if the user does not have content privileges.||If AllowProfileViewing and AllowUserCreatedContent flags are not set in a gamer profile, then the user cannot view profiles or display the gamer card of another user. The following methods now check for these privileges and will return GamerPrivilegeException if the user does not have these privileges:
|The picture sharing mechanism has changed.||Previously, Windows Phone® 7 would place the picture into the Isolated Storage of the application. The picture would then be loaded when the application was launched. Now, when the application is launched, it is passed a string token. To retrieve the picture, the application calls the GetPictureFromToken() method, public static Picture GetPictureFromToken(string token), which takes the token as a parameter and returns a Picture object. You will need to update existing applications.
The following code example illustrates how to use the GetPictureFromToken method to retrieve a photo. For more information see, How to: Create a Photo Extras Application for Windows Phone:
|Deployment and debugging.||While deploying or debugging, if you get the following error: “Application could not be launched for debugging”. First, verify that the application is installed on the target device and that there is no splash screen in the project. Then, uninstall the application and in Visual Studio perform the following steps:
|Installation on Windows Vista.||Windows Phone Developer Tools setup blocks installation on Windows Vista and forces the user to install Windows Vista SP2.|
You can read more about the release on the Windows Phone Developer Blog.
Today we also released the Silverlight Toolkit for Windows Phone 7. Like the desktop toolkit, this is a way to ship out-of-band controls and other goodies. Also like the desktop toolkit, you’ll find it at silverlight.codeplex.com
The toolkit includes a number of controls that the community has requested:
- GestureService and GestureListener
Want to get started with Windows Phone 7 Development yourself? Check out the get started page on Silverlight.net
The big news on the XNA side is phone support, of course. However, it’s the full release for Windows, Xbox 360 and phone. XNA Game Studio 4.0 is included with the Windows Phone developer tools.