-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
34 lines (30 loc) · 1.2 KB
/
Directory.Build.props
File metadata and controls
34 lines (30 loc) · 1.2 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
<Project>
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors />
<WarningsNotAsErrors>NU1903;NU1902</WarningsNotAsErrors>
<AnalysisLevel>latest-recommended</AnalysisLevel>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<RootNamespace>$(MSBuildProjectName)</RootNamespace>
</PropertyGroup>
<!--
Note: a Condition="'$(IsTestProject)' == 'true'" PropertyGroup does NOT
work here — Directory.Build.props is imported before the csproj body, so
$(IsTestProject) is empty at this point. Test projects set their own
TreatWarningsAsErrors override.
-->
<ItemGroup>
<Using Include="System" />
<Using Include="System.Collections.Generic" />
<Using Include="System.Linq" />
<Using Include="System.Threading" />
<Using Include="System.Threading.Tasks" />
</ItemGroup>
</Project>