With Unchase.OpenApi exists a Visual Studio Extension to generate code for web services with NSwag.
This leads me to the following question: Is there a way to create a web service reference based on a swagger.json reference in Rider?
I haven't used the extension. Based on the gif I conclude, it generates clients one time and then the generated code is commited. We use in our project another approach.
Add an OpenAPI reference to the csproj file
<OpenApiReference Include="..\relative\path\to\openapi.json" CodeGenerator="NSwagCSharp" ClassName="{controller}Client" Link="OpenAPIs\openapi.json" />
Reference the package NSwag.ApiDescription.Client
The client(s) will be generated before building the project and placed in obj directory. Since that they are available to use in your code.