-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirectory.Build.props
37 lines (33 loc) · 1.46 KB
/
Directory.Build.props
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
<Project>
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<PropertyGroup>
<AnalysisLevel>latest</AnalysisLevel>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<CodeAnalysisTreatWarningsAsErrors>true</CodeAnalysisTreatWarningsAsErrors>
<AnalysisMode>All</AnalysisMode>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="StyleCop.Analyzers">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<!-- ITMO is DEV code style analyzers -->
<ItemGroup>
<PackageReference Include="SourceKit.Analyzers.Collections" />
<PackageReference Include="SourceKit.Analyzers.Enumerable" />
<PackageReference Include="SourceKit.Analyzers.MemberAccessibility" />
<PackageReference Include="SourceKit.Analyzers.Nullable" />
<PackageReference Include="SourceKit.Analyzers.Properties" />
</ItemGroup>
<!-- Make project internal classes visible to test projects with same name -->
<ItemGroup>
<InternalsVisibleTo Include="$(AssemblyName).Tests" />
</ItemGroup>
</Project>