question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Need to update document to clarify which linux distro that autorest supports now.

See original GitHub issue

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

... 
No usable version of the libssl was found
FATAL: csharp/simplifier - FAILED
FATAL: Error: [Exception] AutoRest extension '@microsoft.azure/autorest.csharp' terminated.
Process() cancelled due to exception : [Exception] AutoRest extension '@microsoft.azure/autorest.csharp' terminated.

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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
oldercommented, Jan 8, 2021

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.

2reactions
daviwilcommented, Oct 19, 2020

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: https://github.com/dotnet/runtime/issues/28079.

I’ll see if I can get a new build of the generator shipped with a newer update of the SDK.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Top 7 Best Linux Distros For Laptops - DigitalOcean
In this module, we will have a look at some distros which are best suited for laptops so that you can choose the...
Read more >
Choosing the Right Linux Distro - YouTube
Choosing a Linux distribution can be difficult, especially if you don't know much about Linux. However, over the past several years I've ...
Read more >
What's new - Azure Sphere | Microsoft Learn
Learn about changes and new features in the latest Azure Sphere release.
Read more >
Best Linux Distributions That are Most Suitable for Beginners
Here are our recommendations for the best Linux distributions for beginners. ... Ubuntu has great documentation and community support.
Read more >
create a readme file online
Create A Readme File OnlineA ReadMe file is a standard place for instructions or documentation that you want to share with people about...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found