-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
27 lines (24 loc) · 1.33 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
<Project>
<!-- There is nothing else to import. -->
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>latest</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<PropertyGroup>
<NoWarn>$(NoWarn);CA1031;CA1819</NoWarn>
<WarningsAsErrors>$(WarningsAsErrors),1591,CS1573,CS1998,CS8604,CS9113</WarningsAsErrors>
<WarningsAsErrors>$(WarningsAsErrors),CA1069,CA1510,CA1826,CA1850,CA1854,CA1859,CA1860,CA1861,CA1865,CA1866,CA1867,CA2016,CA2253,CA2254</WarningsAsErrors>
<WarningsAsErrors>$(WarningsAsErrors),SYSLIB1045</WarningsAsErrors>
<WarningsAsErrors>$(WarningsAsErrors),IDE0028,IDE0290</WarningsAsErrors>
<WarningsAsErrors>$(WarningsAsErrors),IL2060,IL2091,IL2095,IL3002,IL3050</WarningsAsErrors>
<!--
These warnings related to AOT/trimming are commented out because some libraries we use are not AOT-ready.
- Spectre.Console (https://github.com/spectreconsole/spectre.console/issues/1332)
- Tingle.Extensions.JsonPatch (referenced by Falu) uses JsonPatchDocument which is not AOT-ready.
- CloudNative.CloudEvents.SystemTextJson (https://github.com/cloudevents/sdk-csharp/issues/272)
-->
<!-- <WarningsAsErrors>$(WarningsAsErrors),IL2104,IL2026,IL3053</WarningsAsErrors> -->
</PropertyGroup>
</Project>