I'm trying to use Async CTP for WP7 , but when I'm including AsyncCtpLibrary_Phone.dll, ID_CAP_LOCATION capability it's detected by CapabilityDetection. Obvious, I don't use and Location service in my project. Thanks, Alex
AsyncCtpLibrary_Phone.dll includes the method ResolveAddressTaskAsync
which takes parameters from the System.Device.Location
namespace.
The capability detection process determines the need for the "ID_CAP_LOCATION" by analysing all DLLs in the XAP and looking for use of this namespace. This is the case whether you use that code in your app or not.
There is no way round this in 7.0. However, tThe detection rules in 7.1 are more specific with regards "ID_CAP_LOCATION" so this shouldn't be the case.