Azure / autorest

OpenAPI (f.k.a Swagger) Specification code generator. Supports C#, PowerShell, Go, Java, Node.js, TypeScript, Python
MIT License
4.6k stars 732 forks source link

Make autorest --csharp default to track2 #3849

Closed ShivangiReja closed 3 years ago

ShivangiReja commented 3 years ago

Currently autorest --chsharp default to V2 version of C# generator and uses "@microsoft.azure/autorest.csharp" package. Now that we added command line support for track-2 C# generator, we should update the default to V3 C# generator and use "@autorest/csharp" package instead.

We can have --legacy flag as Java to enable the use of the V2 C# generator and for this we can use 2.3.91 preview version of "@microsoft.azure/autorest.csharp" package.

ShivangiReja commented 3 years ago

CC: @daviwil @timotheeguerin @lmazuel

timotheeguerin commented 3 years ago

@ShivangiReja What version of the csharp package should I configure it to be?

timotheeguerin commented 3 years ago

also do you actually want to default to using v3 or should we just support the --v3 flag and make it the default later.

daviwil commented 3 years ago

We want to make this package the new default for v3 like we did for TypeScript, Python, and Java

ShivangiReja commented 3 years ago

@timotheeguerin we can use @autorest/csharp@3.0.0-beta.20210205.1 version or above.

CC: @pakrym