OData / ODataConnectedService

A Visual Studio extension for generating client code for OData Services
Other
77 stars 41 forks source link

Publish odata-cli for .Net 7 #350

Open rpallares opened 1 year ago

rpallares commented 1 year ago

Is your feature request related to a problem? Please describe.

odata-cli isn't available on .Net 7. This make any build using official docker image: mcr.microsoft.com/dotnet/sdk:7.0
With this image the dotnet tool install command fail: with this error:

MSBuild version 17.6.1+8ffc3fe3d for .NET
  Tool 'microsoft.odata.cli' (version '0.1.0') was restored. Available commands: odata-cli
  Restore was successful.
  You must install or update .NET to run this application.
  App: /root/.nuget/packages/microsoft.odata.cli/0.1.0/tools/net6.0/any/odata-cli.dll
  Architecture: x64
  Framework: 'Microsoft.NETCore.App', version '6.0.0' (x64)
  .NET location: /usr/share/dotnet/
  The following frameworks were found:
    7.0.5 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Learn about framework resolution:
  https://aka.ms/dotnet/app-launch-failed
  To install missing framework, download:
  https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=6.0.0&arch=x64&rid=alpine.3.17-x64

Describe the solution you'd like

Have an official package compatible with .Net 7

Describe alternatives you've considered

The proxy files are generated by developers who have .Net 6 also.

Additional context

Make much harder to generate proxy code on CI/CD (causing annoying issues https://github.com/OData/ODataConnectedService/issues/349)

jvalkeejarvi commented 2 months ago

Are there any plans to implement this or rather support .net8.0?