ST.NSwag.ServerSourceGenerator 0.0.4

dotnet add package ST.NSwag.ServerSourceGenerator --version 0.0.4
NuGet\Install-Package ST.NSwag.ServerSourceGenerator -Version 0.0.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ST.NSwag.ServerSourceGenerator" Version="0.0.4">
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ST.NSwag.ServerSourceGenerator --version 0.0.4
#r "nuget: ST.NSwag.ServerSourceGenerator, 0.0.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ST.NSwag.ServerSourceGenerator as a Cake Addin
#addin nuget:?package=ST.NSwag.ServerSourceGenerator&version=0.0.4

// Install ST.NSwag.ServerSourceGenerator as a Cake Tool
#tool nuget:?package=ST.NSwag.ServerSourceGenerator&version=0.0.4


Generates Web API/ASP.NET Core controllers from a OpenAPI specification.

This package is source generator for great nswag tool. Inspired by H.NSwag.Generator


Install-Package ST.NSwag.ServerSourceGenerator


  1. Put openapi specification in project dir and add AdditionalFiles tag to project
        <AdditionalFiles Include="example.openapi.yaml" />

or link specification outside project dir

        <AdditionalFiles Include="..\specs\linkedExample.openapi.yaml" Link="linkedExample.openapi.yaml" />
  1. Add .nswag settings file in project dir with exact same name.
    Example: example.openapi.yaml → example.openapi.yaml.nswag


  • How to generate or edit .nswag file?

Use NSwagStudio

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.4 267 11/19/2022
0.0.3 255 11/12/2022
0.0.2 264 11/1/2022
0.0.1 300 10/30/2022