-
Notifications
You must be signed in to change notification settings - Fork 349
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
Support VS2019 with the client code generator #1485
Comments
@mikepizzo Why we always end up short on the client side of the OData (javascript, blazor, vscode, vs2019) Would you mind discussing this subject on your next meeting, please? Thank you very much in advance 🙏 @raheph would you; please make this priority since It will not take more than 5-minute to fix When I update files in VSIX as below extension.vsixmanifest <Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[14.0, 17.0)" />
</Installation>
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,17.0)" DisplayName="Visual Studio core editor" />
</Prerequisites> manifest.json "dependencies": {
"Microsoft.VisualStudio.Component.CoreEditor": "[15.0,17.0)"
} it throws
I found the same issue in here dotnet/project-system#4462 but no luck about fixing it. 🥇 Finally figured it out, there was one missing place. catalog.json "dependencies": {
"Microsoft.VisualStudio.Component.CoreEditor": "[15.0,17.0)"
}, Well, it worked but still, it had better fix it in the source code. |
I changed all places like explained by @cilerler but its still not able to install it |
Remove the |
Worked, thanks! |
Thanks, it works! Please upload a Visual Studio 2019 version to the marketplace https://marketplace.visualstudio.com/items?itemName=bingl.ODatav4ClientCodeGenerator |
Any plan to get this updated on the Marketplace? |
@cfeilen You could also consider using OData Connected Service for code generation and it currently supports VS 2019. |
@weitzhandler The recommended code generator tool is now OData Connected Service which has all the features available in OData Client Code Generator.In addition it has support for VS 2019. We will therefore close this issue. Please register an issue in Connected Service Repo incase you face challenges. |
Thank you for the update, and thank you and the rest of the team for the great effort ❤ As a LoB app developer, OData has always been one of the most important parts in programming to me. I'm super excited to see OData is reviving, and hopefully will soon become as what RIA services used to be in those days. Anyway, if I may ask, back at the day, I got recommendations here to use Simple.OData.Client or other clients and generators out there. |
@weitzhandler Thanks for the feedback. Yes, it is recommended to use Microsoft OData Connected Service and |
@paulodero Do you know if this problem exist when using OData Connected Service? #1396 |
Is there any tooling (Client Code Generator, Connected Service, something else?) that supports generating the client model/proxies from a command line or CI build (i.e. non-UI driven)? |
@ebekker You can try something along the lines of this - https://romiller.com/2013/05/15/running-ef-t4-code-generation-templates-from-command-line/ Basically, the code generator is a TT4 tool. You can try using TextTransform.exe to run it from command line. Do let us know how that worked out. |
Funny you mention that -- along the same lines I've already been expanding upon the EFCore.TextTemplating project from @bricelam -- it's a T4-based version of the EF Core scaffolding tooling. I've used it to generate the EF Core model along with context and related components. The OData piece is related to (and derived from) that, so I guess I can just pull in the related template code from the Connected Service project. |
The connected service fails on big metadata files. Code generator still can process them. Shame we don't have it in vs2019 |
@mkalinovTC you can try the OData Cli. You can try the dotnet tool https://www.nuget.org/packages/Microsoft.OData.Cli/ or the exe: https://www.nuget.org/packages/Microsoft.OData.Cli.Exe whichever that works for you. |
Also, when working with huge metadata files in the connected service, there is an option to split the huge file into multiple files: Check out this https://learn.microsoft.com/en-us/odata/connectedservice/generating-multiple-files on how to use the feature. |
Thanks @ElizabethOkerio |
The latest version (7.5.0) of the OData v4 Client Code Generator extension doesn't not support VS2019.
Can you please enable that?
Thank you!
The text was updated successfully, but these errors were encountered: