How to pass code generation options in VS "Add new OpenAPI service reference" dialog
See original GitHub issueI couldn’t find any example of specifying code generation options in this modal:
Since this is using NSwag underneath, I was wondering if you know how MS implemented passing options. For example I tried a few without success:
GenerateClientInterfaces=true
/GenerateClientInterfaces=true
GenerateClientInterfaces:true
/GenerateClientInterfaces:true
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Generating HTTP API clients using Visual Studio ...
The first step in generating an OpenAPI client is to right-click your project in Visual Studio and selecting “Add Connected Service.” Adding a ......
Read more >How to call a REST service in .NET if you have its Open ...
When the new project is ready, click “Add -> Service Reference” in the project's context menu and select “OpenAPI”. Then fill out the...
Read more >Using OpenApiReference To Generate Open API Client ...
I this post I show how you can customise the code generated by the OpenApiReference tooling from Visual Studio's Connected Services using ...
Read more >Add new OpenAPI service reference to .NET Core 3.0 projects
At first glance it seemed fairly simple. Right click the project and select: “Add -> Service Reference”. Image displaying how to start the...
Read more >Using OpenAPI Auto-Generated Clients in ASP.NET Core
Adding a service reference in Visual Studio is very easy. Select the project in Solution Explorer and choose Project | Add Service Reference...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The options supported in that field are passed directly on the
dotnet dotnet-nswag.dll openapi2csclient
ordotnet dotnet-nswag.dll swagger2tsclient
command line. Anything those commands support should be fine.I’m not sure whether the field remains in VS but editing the .csproj will always work e.g.
or
Its this one but we need to rename it i think https://github.com/RicoSuter/NSwag/wiki/ServiceProjectReference