Skip to content

Commit 8c4f43b

Browse files
committed
Perf: turn off the ASP.NET OpenAPI source generator globally
1 parent f641677 commit 8c4f43b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Directory.Build.targets

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<Project>
2+
<Target Name="DisableCompileTimeOpenApiXmlGenerator" BeforeTargets="CoreCompile">
3+
<ItemGroup>
4+
<Analyzer Remove="@(Analyzer)" Condition="'%(Filename)' == 'Microsoft.AspNetCore.OpenApi.SourceGenerators'"/>
5+
</ItemGroup>
6+
</Target>
7+
</Project>

0 commit comments

Comments
 (0)