问题
After asking my first question Windows Phone 7.1 app accessing Azure Storage directly, I download wp7facebookazure wp7.0 sample.
After i downloaded wp7facebookazure sample from http://wp7azurequickstarts.codeplex.com/releases/view/65745, I compiled WindowsPhoneCloud.StorageClient library, I see it is using custom System.Data.Services.Client library.
After I change the sample to use windowsphone7.1 sdk and then I add System.Data.Services.Client reference, I get following error:
Microsoft Visual Studio
A reference to a higher version or incompatible assembly cannot be added to the project.
How I can use windowsphone7.1 sdk System.Data.Services.Client reference?
回答1:
Here is what I tried in my machine:
- Loaded WP7FacebookAzure solution
- Upgraded solution to use Windows Phone SDK 7.1
- Removed System.Data.Services.Client project completely
- Added System.Data.Services.Client references from C:\Program Files (x86)\Microsoft SDKs\Microsoft Data Framework\Phone\v7.1\bin\System.Data.Services.Client.dll
There were some error which you work to remove however using above steps I was able to integrate System.Data.Services.Client.dll in WP7FacebookAzure solution.
来源:https://stackoverflow.com/questions/11181105/error-adding-system-data-services-client-reference-to-windowsphone7-1-sdk