Skip to content

Commit c49aa54

Browse files
committed
Run analyzers only for a Release build.
This speeds up the local development loop.
1 parent d1507f0 commit c49aa54

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Directory.Build.props

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,19 @@
1515
<DebugType>embedded</DebugType>
1616
<LangVersion>preview</LangVersion>
1717
<AnalysisLevel>latest-all</AnalysisLevel>
18+
<RunAnalyzersDuringBuild>false</RunAnalyzersDuringBuild>
19+
<RunAnalyzersDuringLiveAnalysis>true</RunAnalyzersDuringLiveAnalysis>
1820
<PublishRepositoryUrl>true</PublishRepositoryUrl>
1921
<EmbedUntrackedSources>true</EmbedUntrackedSources>
2022
<GenerateDocumentationFile>true</GenerateDocumentationFile>
2123
<NoWarn>$(NoWarn);1591;CA1708;CA1835;CA2215;CA5397;NU5105</NoWarn>
2224
<MinVerDefaultPreReleasePhase>beta</MinVerDefaultPreReleasePhase>
2325
</PropertyGroup>
2426

27+
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
28+
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
29+
</PropertyGroup>
30+
2531
<PropertyGroup Condition=" '$(GITHUB_ACTIONS)' == 'true' OR '$(APPVEYOR)' == 'True' OR '$(TF_BUILD)' == 'True' ">
2632
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
2733
<Deterministic>true</Deterministic>

0 commit comments

Comments
 (0)