如何在 Visual Studio 2017 中更新 OData WCF? [英] How to update OData WCF in Visual Studio 2017?

查看:33
本文介绍了如何在 Visual Studio 2017 中更新 OData WCF?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试更新现有项目中的服务引用时,出现错误提示

<块引用>

无法更新指定的 OData API,因为 OData API 现在仅受连接服务支持.

aka 链接 (

VS 2017 没有说明.

以下说明将我引导至 OData Connected Serve VS 扩展.(

而且似乎无法在 VS 2017 中安装扩展.

滚动到扩展描述页面的底部,我们将看到有关其 VS 2017 版本的所有问题.

那么问题是:OData 扩展是 VS 2017 中唯一更新 OData 服务的吗?我们有什么走动?

解决方案

官方 Visual您在博文中提到的 Studio Marketplace 代码生成工具现在支持 Visual Studio 2017.

与通常设置 OData 引用的方式的一个显着区别是,以前直接使用 Visual Studio 的添加服务引用"来生成相关代码,安装该工具会添加添加连接的服务".

另请参阅此 GitHub 问题中的讨论.

Trying to update Service Reference in an existing project, I got an error that says,

The specified OData API cannot be updated because OData APIs are now only supported with Connected Services.

The aka link (http://aka.ms/odatavsclientguidance) leads to http://odata.github.io/odata.net/#OData-Client-Code-Generation-Tool.

There is no instruction for VS 2017.

The instruction below leads me to the OData Connected Serve VS extension. (https://marketplace.visualstudio.com/items?itemName=laylaliu.ODataConnectedService)

And it appears that extension cannot be installed in VS 2017.

Scroll to the bottom of the extension description page, we will see all the questions about its VS 2017 version.

So the question: is that OData extension the only to update OData Service in VS 2017? What walk around do we have?

解决方案

The official Visual Studio Marketplace code generation tool, which you refer to in your post, now supports Visual Studio 2017.

One notable difference from how one would normally go about setting up OData references is that where one would previously use Visual Studio's "Add Service Reference" directly to generate the relevant code, installing the tool adds a "Add Connected Service" instead.

See also the discussion in this GitHub issue.

这篇关于如何在 Visual Studio 2017 中更新 OData WCF?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆