Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OData Client Generation, please give clear instructions on which extension to use - both don't work #1238

Closed
RayKoopa opened this issue Aug 27, 2018 · 2 comments

Comments

@RayKoopa
Copy link

Short summary (3-5 sentences) describing the issue.
You offer the following 2 extension on the VS marketplace:

Which one should we use? Which one is still maintained? Why are there two available anyway?

Background

I already know having installed both at the same time is a bad idea because it messes with the templates or whatever they do. However, even separately, I cannot get any of them to create an OData client for me.

OData Connected Service

  1. Only shows an error message if you try to access a development server with a self-signed HTTPS certificate, but doesn't give clear details on why it couldn't find the metadata resource.
    image
    Simple enough, switch dev server to HTTP and think you're done, but...

OData v4 Client Code Generator

  1. Simply doesn't create a new item in the "Add New Item" dialog for me. Tried to add an item to a .NET Framework and .NET Core library project, wasn't in both lists. Renders it useless for me.

Additional detail

I'm using VS2017 Professional with the latest updates.

@RayKoopa RayKoopa changed the title Please give clear instructions on which extension to use - both don't work OData Client Generation, please give clear instructions on which extension to use - both don't work Aug 27, 2018
@KanishManuja-MS
Copy link
Contributor

@RayKoopa - The connected services offers you a UI to generate the client code whereas the client code generator needs parameters to be set explicitly. In the future, one of the tools will be deprecated.

You can refer to the workaround mentioned in #1225 . That issue has been fixed and should be available in the next release for that package but in the meanwhile feel free to use the workaround.

I believe that there is more investigation needed for OData/lab#76. Although I suspect that client code generator would also see the same issue, but it may be worth trying.

@RayKoopa
Copy link
Author

Thanks, I'll stick with the Connected Service one then, because the other one, for some reason, doesn't yield me a new template in the Add New Item dialog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants