-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
48 lines (40 loc) · 1.58 KB
/
Directory.Build.props
File metadata and controls
48 lines (40 loc) · 1.58 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
<?xml version="1.0" encoding="utf-8"?>
<Project>
<!-- ========================= -->
<!-- Global project settings -->
<!-- ========================= -->
<PropertyGroup>
<!-- Target framework for all projects -->
<TargetFramework>net10.0</TargetFramework>
<!--
Centralized version management:
Define here shared framework and NuGet package versions
to be consumed across all projects in the solution (single source of truth).
-->
<!-- Language & code quality -->
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<!-- Analyzers -->
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisLevel>latest</AnalysisLevel>
<!-- StyleCop behavior -->
<StyleCopTreatErrorsAsWarnings>true</StyleCopTreatErrorsAsWarnings>
<!-- Documentation -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!-- Build quality -->
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
</PropertyGroup>
<!-- ========================= -->
<!-- Analyzer packages -->
<!-- ========================= -->
<ItemGroup>
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556" PrivateAssets="all" />
</ItemGroup>
<!-- ========================= -->
<!-- Analyzer configuration -->
<!-- ========================= -->
<ItemGroup>
<AdditionalFiles Include="$(MSBuildThisFileDirectory)stylecop.json" />
</ItemGroup>
</Project>