-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirectory.Build.props
22 lines (19 loc) · 1.04 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
<Project>
<PropertyGroup>
<!-- Create a property pointing to the root of the repository; ends with backslash. -->
<RepositoryRootPath>$(MSBuildThisFileDirectory)</RepositoryRootPath>
<!-- Define code analysis rules for all projects in the repository. -->
<CodeAnalysisRuleSet>$(RepositoryRootPath)\codeAnalyzers.ruleset</CodeAnalysisRuleSet>
<StyleCopTreatErrorsAsWarnings>false</StyleCopTreatErrorsAsWarnings>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<LangVersion>7.3</LangVersion>
<MSBuildWarningsAsErrors>MSB3277;</MSBuildWarningsAsErrors>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<ItemGroup Condition="'$(Configuration)' == 'Debug'">
<AdditionalFiles Include="$(RepositoryRootPath)\stylecop.json" Link="stylecop.json" />
<!--Add reference to StyleCop analyzers to all projects-->
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118" />
<AdditionalFiles Include="$(RepositoryRootPath)\stylecop.json" />
</ItemGroup>
</Project>