-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathDirectory.Build.props
22 lines (22 loc) · 985 Bytes
/
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
<Project>
<PropertyGroup Condition=" '$(SolutionDir)' == '' ">
<!-- needed when building individual projects, which you probably don't want to do, but VS Code was doing it regardless -->
<SolutionDir>$(MSBuildThisFileDirectory)</SolutionDir>
</PropertyGroup>
<PropertyGroup>
<Nullable>enable</Nullable>
<AnalysisLevel>6</AnalysisLevel>
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
<CodeAnalysisRuleSet>$(SolutionDir)Common.ruleset</CodeAnalysisRuleSet>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<Features>strict</Features>
<ImplicitUsings>enable</ImplicitUsings>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
</PropertyGroup>
<ItemGroup>
<AdditionalFiles Include="$(SolutionDir).stylecop.json" />
<PackageReference Include="StyleCop.Analyzers" />
</ItemGroup>
</Project>