Skip to main content
.NETStandard2.0

C# 9 Source Generator library for NSwag.

Published
May 1, 2023
3y ago
Total Downloads
69.4K
69,398

Install

dotnet add package H.NSwag.Generator --version 13.18.2.72
ProductVersions
.NET Standard
netstandard2.0

README

H.NSwag.Generator

NuGet

Install-Package H.NSwag.Generator

Usage

The generator generates code based on any .nswag file in the AdditionalFiles ItemGroup. The generator will automatically detect all NSwag files inside the project directory, there is no need to add them manually.

<ItemGroup>
  <AdditionalFiles Include="openapi.nswag" />
</ItemGroup>

Global options

Enable caching - suitable for cases where your openapi specification rarely changes or you get it via url.

<PropertyGroup>
  <NSwagGenerator_UseCache>true</NSwagGenerator_UseCache>
</PropertyGroup>

Contacts

Changes from Previous Version

No structural changes between v13.18.2.71 and v13.18.2.72.

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.