Skip to main content
.NETStandard2.0

C# 9 Source Generator NuGet library for NSwag.

Published
Jun 14, 2021
5y ago
Total Downloads
69.4K
69,398

Install

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

README

H.NSwag.Generator

Language License Requirements Build Status

Generation via temp file is used here.

Nuget

NuGet

Usage

  <ItemGroup Label="Code Generation">
    <AdditionalFiles Include="openapi.nswag" />

    <PackageReference Include="H.NSwag.Generator" Version="1.0.10">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
    </PackageReference>
    <PackageReference Include="NSwag.MSBuild" Version="13.9.4">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
    </PackageReference>
  </ItemGroup>

Advanced usage

<PropertyGroup>
  <!-- Optional. If the value is not specified, the runtime and the path to the exe file will be determined automatically. -->
  <NSwagConsolePath>$(NSwagDir_Net50)dotnet-nswag.exe</NSwagConsolePath>
</PropertyGroup>

Contacts

Changes from Previous Version

No structural changes between v1.1.11 and v1.1.12.

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.