-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
44 lines (41 loc) · 2.18 KB
/
Directory.Build.props
File metadata and controls
44 lines (41 loc) · 2.18 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
35
36
37
38
39
40
41
42
43
44
<Project>
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors />
<!-- Nullable warnings that are acceptable for now -->
<WarningsNotAsErrors>CS8618;CS8625;CS8603;CS8604;CS8602;CS8600;CS8601;CS8765;CS8767;CS8619</WarningsNotAsErrors>
<!-- Missing XML documentation warnings for design-time classes -->
<WarningsNotAsErrors>$(WarningsNotAsErrors);CS1591;CS1572</WarningsNotAsErrors>
<!-- Async without await warnings for placeholder methods -->
<WarningsNotAsErrors>$(WarningsNotAsErrors);CS1998</WarningsNotAsErrors>
<!-- Unused events/fields in design-time and interface implementations -->
<WarningsNotAsErrors>$(WarningsNotAsErrors);CS0067;CS0649</WarningsNotAsErrors>
<!-- Type conflicts that are intentional -->
<WarningsNotAsErrors>$(WarningsNotAsErrors);CS0436</WarningsNotAsErrors>
<!-- Obsolete API usage warnings for planned refactoring -->
<WarningsNotAsErrors>$(WarningsNotAsErrors);CS0618</WarningsNotAsErrors>
<!-- Code analysis warnings that are acceptable -->
<WarningsNotAsErrors>$(WarningsNotAsErrors);CA1819;CA1805;CA1001;CA1812;CA2214</WarningsNotAsErrors>
<!-- xUnit analyzer warnings for test projects -->
<WarningsNotAsErrors>$(WarningsNotAsErrors);xUnit1031</WarningsNotAsErrors>
</PropertyGroup>
<PropertyGroup Condition="'$(IsTestProject)' == 'true'">
<IsPackable>false</IsPackable>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(IsTestProject)' != 'true'">
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<!-- Debugging experience improvements: ensure rich, portable symbols and no optimization in Debug -->
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<DebugSymbols>true</DebugSymbols>
<DebugType>portable</DebugType>
<Optimize>false</Optimize>
<!-- Avoid overly strict determinism which can sometimes confuse source mapping in certain
toolchains -->
<Deterministic>false</Deterministic>
</PropertyGroup>
</Project>