Skip to content
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

Docker image for NSwag CLI #5071

Open
philipszalla opened this issue Dec 19, 2024 · 0 comments
Open

Docker image for NSwag CLI #5071

philipszalla opened this issue Dec 19, 2024 · 0 comments

Comments

@philipszalla
Copy link
Contributor

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

I need to generate C# client classes from an OpenAPI definition. The classes should be generated manually/on purpose using a script.
It's no option to add a pre/post build event with the msbuild package, as the definition is hosted online and developers need the possibility to work offline.
Currently the online way to achieve this would be to download the release manually from GitHub including getting all requirements.

Describe the solution you'd like

Provide a Docker image at a public registry (e.g. hub.docker.com) which executes the NSwag CLI.

Describe alternatives you've considered

Install msbuild package and try to run the dll from the .nuget folder. Is a little bit hacky and requires the dependencies (e.g. dotnet) like this

dotnet ~/.nuget/packages/NSwag.MsBuild/... openapi2csharpclient ...

Additional context

Add any other context or screenshots about the feature request here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant