-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
34 lines (29 loc) · 1.13 KB
/
Directory.Build.props
File metadata and controls
34 lines (29 loc) · 1.13 KB
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
<Project>
<PropertyGroup>
<!-- Language & compiler -->
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<!-- Analyzers -->
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisLevel>latest-recommended</AnalysisLevel>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<!-- Build behavior -->
<Deterministic>true</Deterministic>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!--
Warnings as errors: pragmatic subset.
These catch real bugs without being noisy.
CS8600-CS8625 : Nullable reference type warnings (prevent null bugs)
CA2016 : Forward CancellationToken to methods
CA2208 : Instantiate argument exceptions correctly
-->
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningsAsErrors>CS8600;CS8601;CS8602;CS8603;CS8604;CS8618;CS8625;CA2016;CA2208</WarningsAsErrors>
<!--
Suppress noisy warnings that rarely add value.
CS1591: Missing XML comment for publicly visible type
-->
<NoWarn>CS1591</NoWarn>
</PropertyGroup>
</Project>