更新服务引用后,Project不会生成

更新服务引用后,我收到以下错误构建我的项目:

不包含’DefaultResolveType’的定义

在自动生成的Reference.cs上抛出错误,但DefaultResolveType方法应该在生成的类中,因为它是从’this’关键字调用的。 自上次成功构建以来,数据服务没有更改,客户端代码也没有更改。

[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")] protected global::System.Type ResolveTypeFromName(string typeName) { global::System.Type resolvedType = this.DefaultResolveType(typeName, "Microsoft.Crm.Sdk.Data.Services", "ITF.DataAccessLayer.CRM.CrmAccessService"); if ((resolvedType != null)) { return resolvedType; } return null; } 

好的..我已经弄清楚如何解决这个问题:

  • 右键单击该项目
  • 点击“管理NuGet包”
  • 卸载WCF数据服务客户端(已安装5.6版),它将删除其他依赖包
  • 通过单击左侧的联机选项卡,Resinatall WCF数据服务客户端(5.6.1)

好像这个软件包的5.6版本存在问题