-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
48 lines (38 loc) · 1.79 KB
/
Directory.Build.props
File metadata and controls
48 lines (38 loc) · 1.79 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
45
46
47
48
<Project>
<PropertyGroup>
<!-- Enable .NET analyzers -->
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisLevel>latest-recommended</AnalysisLevel>
<!-- Nullable reference types -->
<Nullable>enable</Nullable>
<!-- Implicit usings for modern C# -->
<ImplicitUsings>enable</ImplicitUsings>
<!-- Use latest C# language version -->
<LangVersion>latest</LangVersion>
<!-- Enforce code style in build -->
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<!-- Generate documentation comments -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!-- Suppress XML documentation warnings for now (can enable later) -->
<NoWarn>$(NoWarn);CS1591;CS1573;CS1712</NoWarn>
<!-- Enable deterministic builds -->
<Deterministic>true</Deterministic>
<!-- Enable continuous analysis -->
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
<RunAnalyzersDuringLiveAnalysis>true</RunAnalyzersDuringLiveAnalysis>
<!-- Disable NuGet audit to avoid offline restore failures -->
<NuGetAuditMode>None</NuGetAuditMode>
<NuGetAudit>false</NuGetAudit>
</PropertyGroup>
<!-- Code analysis packages applied to NeversoftMultitool projects -->
<ItemGroup Condition="$(MSBuildProjectName.StartsWith('NeversoftMultitool'))">
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.4.0.108396">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Roslynator.Analyzers" Version="4.12.10">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>