-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
40 lines (32 loc) · 1.23 KB
/
Directory.Build.props
File metadata and controls
40 lines (32 loc) · 1.23 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
<Project>
<!-- Shared build properties for all src projects -->
<PropertyGroup>
<!-- Default target framework -->
<TargetFramework>net8.0</TargetFramework>
<!-- C# language settings -->
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<!-- Code quality -->
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors>true</WarningsAsErrors>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisLevel>latest</AnalysisLevel>
<IsPackable>true</IsPackable>
</PropertyGroup>
<PropertyGroup>
<NoWarn>$(NoWarn);NU5104</NoWarn>
</PropertyGroup>
<!-- Test project specific settings -->
<PropertyGroup Condition="'$(MSBuildProjectName)' == 'Tests'">
<IsPackable>false</IsPackable>
</PropertyGroup>
<!-- Sandbox project specific settings -->
<PropertyGroup Condition="'$(MSBuildProjectName)' == 'Sandbox'">
<IsPackable>false</IsPackable>
</PropertyGroup>
<!-- Secret project specific settings -->
<PropertyGroup Condition="'$(MSBuildProjectName)' == 'Secrets'">
<IsPackable>false</IsPackable>
</PropertyGroup>
</Project>