Saturday, January 29, 2011

#DDDHack - broken files...

If you want to enter DDD9 Hack, then the RSS Reader project doesn't build because of differences between the CTP and the RTM.

To get it working:
1.  Delete the old references to Microsoft.Phone.Controls.WebBrowser and friend
2. Add references to the new Microsoft.Phone.* assemblies
3.  Add some capabilities to the contents of Properties/WMAssembly.xml:
    <Capabilities>
      <Capability Name="ID_CAP_GAMERSERVICES" />
      <Capability Name="ID_CAP_IDENTITY_DEVICE" />
      <Capability Name="ID_CAP_IDENTITY_USER" />
      <Capability Name="ID_CAP_LOCATION" />
      <Capability Name="ID_CAP_MEDIALIB" />
      <Capability Name="ID_CAP_MICROPHONE" />
      <Capability Name="ID_CAP_NETWORKING" />
      <Capability Name="ID_CAP_PHONEDIALER" />
      <Capability Name="ID_CAP_PUSH_NOTIFICATION" />
      <Capability Name="ID_CAP_SENSORS" />
      <Capability Name="ID_CAP_WEBBROWSERCOMPONENT" />
    </Capabilities>
4. In that same file replace Default Task with  <DefaultTask Name="_default" NavigationPage="MainPage.xaml" />
5. In that same file replace RuntimeType="SilverLight"  with RuntimeType="Silverlight" 
6. In the .xaml files, replace the xmlns:phoneNavigation import with xmlns:phoneNavigation="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
7. In the xaml files, replace the mpc:ListViewItem with a TextBlock - e.g. <TextBlock Text="{Binding Title}"  /> and  <TextBlock Text="{Binding FeedName}" />
8. In the xaml files, replace the xmlns:shell import with xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"     
9. In the app.xaml file, remove the style <Style x:Key="PhoneListBoxItemLayout" TargetType="mpc:ListViewItem"> starting on line 238

That's it....

My attempt at fixes are at http://slodge.com/dddhack/fixes.zip - just apply these over the top of the base project.

2 comments:

  1. There's also a patch at: http://rssreaderwp7.codeplex.com/SourceControl/list/patches

    ReplyDelete
  2. There's also a patch at http://rssreaderwp7.codeplex.com/SourceControl/list/patches

    ReplyDelete