Yesterday Microsoft released the April refresh of the Windows 7 phone tools. This version of the tools is compatible with the RTM version of Visual Studio 2010. It includes some bug fixes, a few breaking changes, and has support for the Pause/Resume events. You can find more information about the tools on the Windows Team Blog.
You may need to update the WPAppManifest.xml of the applications you've already started to develop. The updated SDK has a Capabilities element that is now populated. So you may need to find the empty Capabilities element in your existing projects and replace it with the following:
<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>
You must manually uninstall the previous version of the Windows Phone Tools. When the Windows Phone Tools were installed there were several components also copied to the system so there were multiple entries in the installed programs list because of this. I made a mistake and uninstalled something in the wrong order; the first thing uninstalled should be the "Windows Phone 7 CTP." When I got around th uninstalling the CTP it complained because the Silverlight 4 SDK (version 4.0.50303.0) was not present and it wanted to install the SDK before uninstalling the CTP. But the reinstallation of the SDK would always fail leaving me with a system on which the CTP could not be removed.
Having wasted a few hours on trying to work around this I finally gave up and started backing up my system so that I could reinstall Windows. Just as my backup completed I got a tweet from Glen Gordon (my local Microsoft Evangelist) about a tool that I could use to resolve the problem. The tool was designed to clean up XNA and Windows Phone Tool installations. I ran the tool and was then able to successfully install the updated Windows Phone 7 tools (without reinstalling Windows).
Tags: Windows Phone