How to generate odata v4 c# proxy client for Visual Studio 2017?

后端 未结 5 2062
南方客
南方客 2021-02-13 10:40

Where can i get odata v4 c# proxy generator for Visual Studio 2017? The existing one is for 2015 only.

相关标签:
5条回答
  • 2021-02-13 11:06

    You can use the download button on this page. You have run the installer and then it works fine with VS2017.

    The extension will not show up in the Tools --> Extensions window, but it will add the 'OData client' as an option in 'add new item'.

    Tested this with Visual Studio 2017 enterprise V15.1


    Edit: Apparently VS2017 is supported again since version 7.4.2 beta, thanks @linac.

    0 讨论(0)
  • 2021-02-13 11:15

    Anyone who is interested for a version which is running in Visual Studio 2019, s. following post:

    Installing OData v4 Client Code Generator in Visual Studio 2019

    0 讨论(0)
  • 2021-02-13 11:17

    VS 2017 is now supported in "OData Connected Service" extension. install it and add your reference from:

    Service Refernces --> Add Connected Service --> OData Connected Service
    
    0 讨论(0)
  • 2021-02-13 11:21

    The best idea here would be to create a class library in Visual studio 2015 with the odata code generator. This class library should be responsible for dealing with all the odata client related operations. Next you can simply add this library to your visual studio 2017 solution and add reference to this library in our main project. That is how I got rid of this problem when I encountered it.

    0 讨论(0)
  • 2021-02-13 11:25

    You can open the solution in VS 2015, update the OData Service Reference from there, then close and reopen in VS 2017.

    Clumsy workaround, however it does work in the absence of MS adding the feature back in.

    0 讨论(0)
提交回复
热议问题