-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
33 lines (27 loc) · 1.06 KB
/
Directory.Build.props
File metadata and controls
33 lines (27 loc) · 1.06 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
<Project>
<Import Project="build\Version.props" />
<PropertyGroup>
<SampleProperty Condition="'$(SampleProperty)' == ''">DefaultValue</SampleProperty>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>latest</LangVersion>
<!-- Enable nullable and treat their warnings as errors -->
<Nullable>enable</Nullable>
<WarningsAsErrors>nullable; NU1605;</WarningsAsErrors>
<NoWarn></NoWarn>
</PropertyGroup>
<!-- Code Analysis -->
<PropertyGroup>
<!--
Enable Microsoft.CodeAnalysis.NetAnalyzers.
This Analyzers is enabled by default if the app is targeting net5.0.
For previous versions it has to be enabled either with EnableNETAnalyzers or AnalysisLevel
-->
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisLevel>latest</AnalysisLevel>
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
<CodeAnalysisTreatWarningsAsErrors>false</CodeAnalysisTreatWarningsAsErrors>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
</PropertyGroup>
</Project>