标签:
解决方法:利用VS2012中Tools->NuGet Package Manage-> Package Manage Console然后输入命令PM> Install-Package Microsoft.Data.OData -Version 5.5.0
然后在Apps应用里加入Microsoft.Data.OData.dll.
最后还要在app.config里加入以下信息:
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.Data.OData" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.5.0.0" newVersion="5.5.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Data.Edm" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.5.0.0" newVersion="5.5.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
标签:
原文地址:http://www.cnblogs.com/andzery/p/4248776.html