Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update OData WCF in Visual Studio 2017?

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.

enter image description here

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

enter image description here

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) enter image description here

And it appears that extension cannot be installed in VS 2017. enter image description here

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

enter image description here

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

like image 821
Blaise Avatar asked May 15 '17 14:05

Blaise


People also ask

How do I update connected services in Visual Studio?

In Solution Explorer, right-click the service reference and then click Update Service Reference.

How do you add a service reference?

In the Solution Explorer right-click on YourSolution/YourProject/References. Select "Add Service Reference..." from the context menu. In the Add Service Reference dialog, enter the service metadata endpoint URL in Address line and press Go button. Select a service from the list and specify Namespace.

What is WCF in Visual Studio?

Visual Studio provides tools for working with Windows Communication Foundation (WCF) and WCF Data Services, Microsoft technologies for creating distributed applications.

How do I add a Web service reference in .NET core?

NET Core or . NET Standard project, this option is available when you right-click on the Dependencies node of the project in Solution Explorer and choose Manage Connected Services.) On the Connected Services page, select Add Service Reference.


1 Answers

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.

like image 142
fuglede Avatar answered Oct 01 '22 03:10

fuglede