-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
35 lines (35 loc) · 1.76 KB
/
Directory.Build.props
File metadata and controls
35 lines (35 loc) · 1.76 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
<Project>
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<LangVersion>13</LangVersion>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<!--
S6966 "Use async method on database connection": SQLite does not support async I/O.
See https://learn.microsoft.com/en-us/dotnet/standard/data/sqlite/async
-->
<NoWarn>$(NoWarn);S6966</NoWarn>
<!--
CS0618: "Type or member is obsolete": Just because something is obsolete doesn't mean we can stop using it
immediately.
NU190x: "NuGet audit warnings": Need to know about them, but they should not block the build.
S125: "Code should not be commented out": Makes it very annoying to test and develop iteratively.
-->
<WarningsNotAsErrors>$(WarningsNotAsErrors);CS0618;NU1901;NU1092;NU1903;NU1904;S125</WarningsNotAsErrors>
<Copyright>Copyright © $([System.DateTime]::Now.ToString('yyyy')) Michael Crawford</Copyright>
<AssemblyVersion>0.4.1.0</AssemblyVersion>
<InformationalVersion>0.4.1.0</InformationalVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="JetBrains.Annotations" />
<PackageReference Include="Roslynator.Analyzers">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="SonarAnalyzer.CSharp">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>