-
Notifications
You must be signed in to change notification settings - Fork 739
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
Need to update document to clarify which linux distro that autorest supports now. #3601
Comments
Try running |
@daviwil, thanks for your help, I tried it but got the same error.
Also, there is some annoying info in the log "realpath(): Permission denied", (known issue? I also have it on Ubuntun 16.04 but no issue to get generated code) I'm wondering how does it used in Microsoft teams, is there anyone use WSL2+Ubuntun latest? |
I'm trying to run the sample in the autorest project here: https://github.com/Azure/autorest/blob/master/docs/examples/generating-a-client.md I'm seeing the same issue as mentioned above (even after trying to install libssl-dev)
Is this a known issue on WSL? What else can I try? |
Thanks for pointing this out, it seems like the current release of @microsoft.azure/autorest.csharp is built with an older .NET Core SDK which expects libssl 1.0 where Ubuntu 20 has libssl 1.1 installed. More info can be found here: dotnet/runtime#28079. I'll see if I can get a new build of the generator shipped with a newer update of the SDK. |
Did someone find a work around for this issue? |
So are there any plans to update autorest to use LTS version of .NET? As far as I understand current version of aurorest is using .NET Core SDK 2.0 which has reached end of life more than 2 years ago in 2018 and is not supported by Microsoft any more. So it means that autorest doesn't work on Ubuntu 20.04 which is now default version for WSL2 and in Microsoft hosted agents in Azure DevOps. |
The newest CSharp generator(v3 - |
Closing, please open a new issue if you still have this problem |
I'm trying to use autorest on "WSL 2 + ubuntu" (the default version in Windows Store is "Ubuntu 20.04.1 LTS")
Autorest does not work on ubuntu 20.04.1 LTS!
autorest --input-file=petstore.yaml --csharp --output-folder=CSharp_PetStore --namespace=PetStore
This forked repository mentioned that autorest supports up to ubuntu 16.04
https://github.com/amarzavery/AutoRest
I tried ubuntu 16.04, and it works, but have to install another package firstly. (it was also mentioned in amarzavery's repo)
sudo apt-get install libunwind8 -y
The text was updated successfully, but these errors were encountered: