-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
33 lines (32 loc) · 1.51 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
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- General build settings -->
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup>
<LangVersion>13.0</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<WarningsAsErrors>CS8600;CS8602;CS8603</WarningsAsErrors>
<WarningsNotAsErrors></WarningsNotAsErrors>
<!-- https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/overview -->
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<!--
[CS1591: Missing XML comment]
Reason:
We don't want to document everything. We only document where it adds value.
[SA1200: Using directive should appear within a namespace declaration]
Reason:
The tooling doesn't help with it and it's annoying.
[SA1600/SA1601: (Partial) Elements should be documented]
Reason:
We don't want to document everything. We only document where it adds value.
[SA1633: The file header is missing or not located at the top of the file]
Reason:
Who cares
-->
<NoWarn>$(NoWarn);CS1591;SA1200;SA1600;SA1601;SA1633</NoWarn>
</PropertyGroup>
</Project>