Upgrading your Windows Phone projects for Windows Phone 7 Developer Tools CTP April refresh
Here are a bunch of breaking issues I encountered on installing Upgrading your Windows Phone projects for Windows Phone 7 Developer Tools CTP April refresh
- For each silverlight for mobile project in your solution you get the following warning (Note: XNA framework apps will not provide a warning but will still require the changes)
- Issue: WarningYou are using a project created by previous version of Windows Phone Developer Tools CTP. Your application may not run properly. Please edit the WMAppManifest.xml file under Properties node and insert the following <Capability> elements between
<Capabilities></Capabilities> element as shown below. <Capabilities> <Capability Name="ID_CAP_NETWORKING" /> <Capability Name="ID_CAP_LOCATION" /> <Capability Name="ID_CAP_SENSORS" /> <Capability Name="ID_CAP_MICROPHONE" /> <Capability Name="ID_CAP_MEDIALIB" /> <Capability Name="ID_CAP_GAMERSERVICES" /> <Capability Name="ID_CAP_PHONEDIALER" /> <Capability Name="ID_CAP_PUSH_NOTIFICATION" /> <Capability Name="ID_CAP_WEBBROWSERCOMPONENT" /> </Capabilities>
- Solution: You can find WMAppManifest.xml in the Properties folderof your project once found add the sections listed above
- Issue: Push Notifications now require the publisher to be defined
- Solution: This can be done within the WMAppManifest.xml in the Properties folder. Update the Publisher on <App> E.g
<App xmlns="" ProductID="{1ac9139d-aa7e-6c70-acf9-c6ceb69632a1}" Title="PinMyApp" RuntimeType="SilverLight" Version="1.0.0.0" Genre="NormalApp" Author="Nick.Harris" Description="Demo" Publisher="www.NickHarris.net">
- Issue: Push Notification payload has been updated
- Solution: Update notifications as per the specification here
- Issue: The property ‘Visible’ does not exist on the type ‘ApplicationBar’ in the XML namespace ‘clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone.Shell’
- Solution: this has bee renamed to IsVisible
- Issue: ‘System.Windows.Navigation.NavigationService’ does not contain a definition for ‘TopLevelNavigationService’
- Solution: change NavigationService.TopLevelNavigationService.Navigate(…) to NavigationService.Navigate(…) Note: did not find this one in the breaking changes….
Release notes for other breaking changes are here