A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/RicoSuter/NSwag/wiki/AspNetCoreToOpenApiCommand below:

AspNetCoreToOpenApiCommand · RicoSuter/NSwag Wiki · GitHub

Either provide a Project or Assembly with an ASP.NET Core Startup class.

We recommend to not use any settings beside assembly/project settings and specify one of the documents which are added with AddOpenApiDocument(document => document.DocumentName = "v1") or AddSwaggerDocument() and configure the document in your web app code.

Then generate the document via CLI:

nswag aspnetcore2openapi /project:MyAspNetCoreApp /documentName:v1 /output:swagger.json

The command is based on the AspNetCoreOpenApiDocumentGenerator.

Important for .NET Core: Assembly loading.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4