Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Add document generation on build #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions React/Complete-Sample/TodoApi/TodoApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<PropertyGroup>
<OpenApiGenerateDocumentsOnBuild>true</OpenApiGenerateDocumentsOnBuild>
<!-- path relative to your csproj where generated files will be placed -->
<OpenApiDocumentsOutputDirectory>..\..\api</OpenApiDocumentsOutputDirectory>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
</ItemGroup>
Expand Down