Azure / autorest.csharp

Extension for AutoRest (https://github.com/Azure/autorest) that generates C# code
MIT License
142 stars 165 forks source link

Usage hint is not always resulting in a public constructor #2060

Open EricDahlvang opened 2 years ago

EricDahlvang commented 2 years ago

Using this swagger: https://github.com/EricDahlvang/TempAutoRestV3Connector/blob/main/src/Swagger/botframework-channel.json

Running

autorest --use:@autorest/csharp@3.0.0-beta.20210210.4 --input-file=.\botframework-channel.json --csharp --add-credential --v3 --verbose --debug --namespace=Microsoft.Bot.Connector.Client --clear-output-folder:true --output-folder:Generated

Not all customizations are honored. The following classes end up having internal constructors:

image

Describe your ideas for solutions The customizations should all be respected.

This appears to be the same issue: https://github.com/Azure/autorest.csharp/issues/1014

EricDahlvang commented 2 years ago

Any update on this?

EricDahlvang commented 2 years ago

Is there a different place this issue should be raised? @pakrym @chamons @m-nash

chamons commented 2 years ago

I am no longer working on this project. @m-nash @AlexanderSher @ShivangiReja might be able to point you to the right group to contact.

AlexanderSher commented 2 years ago

@EricDahlvang does it work if you specify --project-folder parameter explicitly as an absolute path?