-
Notifications
You must be signed in to change notification settings - Fork 31
/
Directory.Build.props
36 lines (28 loc) · 1.14 KB
/
Directory.Build.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<Project>
<!-- Only applies to Trains.NET things -->
<PropertyGroup>
<LangVersion>preview</LangVersion>
<Features>strict</Features>
<Nullable>enable</Nullable>
<NoWarn>NU1701</NoWarn>
<WarningLevel>5</WarningLevel>
<ImplicitUsings>enable</ImplicitUsings>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
</PropertyGroup>
<!-- Workaround for https://github.com/dotnet/roslyn/issues/41640 -->
<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);CS1591;CS1573</NoWarn>
</PropertyGroup>
<!-- I have no idea which one of these works, but sometimes one of them does -->
<PropertyGroup Condition="'$(CI)' == 'true'">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
<RunAnalyzers>true</RunAnalyzers>
<UseRoslynAnalyzers>true</UseRoslynAnalyzers>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<AnalysisLevel>preview</AnalysisLevel>
<!-- <AnalysisMode>AllEnabledByDefault</AnalysisMode> -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
</Project>