Skip to content

Commit

Permalink
Set $(IncludeOpenAPIAnalyzers) when targeting netcoreapp3.0
Browse files Browse the repository at this point in the history
- see also RicoSuter#2261
  • Loading branch information
dougbu committed Jun 23, 2019
1 parent 4e94b9d commit b147cad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/NSwag.AspNetCore/build/NSwag.AspNetCore.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@
Disable document generation by default. This currently overrides Microsoft.Extensions.ApiDescription.Server.props.
-->
<OpenApiGenerateDocuments/>

<!-- Enable analyzers from the Microsoft.AspNetCore.Mvc.Api.Analyzers package. -->
<IncludeOpenAPIAnalyzers
Condition=" '$(TargetFrameworkIdentifier)' == '.NETCoreApp' And '$(_TargetFrameworkVersionWithoutV)' >= '3.0' ">true</IncludeOpenAPIAnalyzers>
</PropertyGroup>
</Project>

0 comments on commit b147cad

Please sign in to comment.