.net – 使用Microsoft.WindowsAzure.StorageClient.TableServic
问题是System.Data.Services.Client.dll和Microsoft.Data.Services.Client.dll中都存在一些类(DataServiceClientException / DataServiceRequestException / DataServiceResponse).简单的方法是
use only one of those libraries.不幸的是:
>无法删除System.Data.Services.Client.dll,因为使用Microsoft.WindowsAzure.StorageClient.TableServicesContext是必需的 通常这两个库可以很好地协同工作.但是,实现here中的代码来检测并发冲突会导致错误: Error 1 The type 'System.Data.Services.Client.DataServiceRequestException' exists in both 'C:Program FilesMicrosoft WCF Data Services5.0bin.NETFrameworkMicrosoft.Data.Services.Client.dll' and 'C:Program FilesReference AssembliesMicrosoftFramework.NETFrameworkv4.5System.Data.Services.Client.dll' Error 2 The type 'System.Data.Services.Client.DataServiceResponse' exists in both 'C:Program FilesMicrosoft WCF Data Services5.0bin.NETFrameworkMicrosoft.Data.Services.Client.dll' and 'C:Program FilesReference AssembliesMicrosoftFramework.NETFrameworkv4.5System.Data.Services.Client.dll' Error 3 The type 'System.Data.Services.Client.DataServiceClientException' exists in both 'C:Program FilesMicrosoft WCF Data Services5.0bin.NETFrameworkMicrosoft.Data.Services.Client.dll' and 'C:Program FilesReference AssembliesMicrosoftFramework.NETFrameworkv4.5System.Data.Services.Client.dll' 因为无法访问System.Data.Services.Client.DataServiceClientException,DataServiceRequestException和DataServiceResponse类,因为它们存在于两个库中.在使用Microsoft.WindowsAzure.StorageClient.TableServicesContext时如何检测并发更新冲突? 解决方法
解决方案是使用C#的
extern alias功能.
>展开项目的参考部分. 这个项目很好. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- 用于在Windows Aero Glass(DWM,GDI,GDI)上绘制所有Win32程序
- 在Windows 10周年纪念版中显示触摸键盘(TabTip.exe)
- windows-server-2012 – 在通过IIS 8.0运行Exchange 2013的
- 如何扩展’Window’打字稿界面
- windows-server-2008 – 无法让SmarterMail在新的Windows 2
- windows – 如何使用Powershell’revoke-expression’以不同
- group-policy – Windows 10更新的组策略配置
- 在新窗口中打开新文件emacs
- Matplotlib支持中文(windows+linux)
- windows-phone-8 – Nokia Imaging SDK是否有硬件限制?