-
Notifications
You must be signed in to change notification settings - Fork 9
/
Directory.Build.props
67 lines (56 loc) · 2.83 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<Project>
<PropertyGroup>
<SourceRoot Condition="$(SourceRoot) == ''">$(MSBuildThisFileDirectory)</SourceRoot>
<SourcePrefix>4.0.0</SourcePrefix>
</PropertyGroup>
<PropertyGroup>
<!-- Versioning is defined from the build script. Use a default dev build if it's not defined.
Sets the AssemblyVersion, AssemblyFileVersion and AssemblyInformationalVersion -->
<Version Condition="'$(Version)' == ''">$(SourcePrefix)-dev</Version>
<PackageVersion Condition="'$(PackageVersion)' == ''">$(SourcePrefix)-dev</PackageVersion>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<!--
Make sure any documentation comments which are included in code get checked for syntax during the build, but do
not report warnings for missing comments.
CS1573: Parameter 'parameter' has no matching param tag in the XML comment for 'parameter' (but other parameters do)
CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member'
-->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn),1573,1591,1712</NoWarn>
<!-- Show full paths for the warnings and errors -->
<GenerateFullPaths>true</GenerateFullPaths>
<!-- Use C# 9.0 -->
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DefineConstants>$(DefineConstants);RELEASE</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DefineConstants>$(DefineConstants);CODE_ANALYSIS</DefineConstants>
</PropertyGroup>
<!-- Common dependencies for all projects -->
<ItemGroup>
<AdditionalFiles Include="$(SourceRoot)scripts\stylecop.json">
<Link>stylecop.json</Link>
</AdditionalFiles>
<PackageReference Include="Stylecop.Analyzers" Condition="$(StylecopEnabled) == '' or $(StylecopEnabled) != 'false'" />
</ItemGroup>
<!-- Code analysis settings -->
<PropertyGroup>
<CodeAnalysisRuleSet>$(SourceRoot)scripts/stylecop.ruleset</CodeAnalysisRuleSet>
<CodeAnalysisRuleSet Condition="$(TestProject) == 'true'">$(SourceRoot)scripts/stylecop.test.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup>
<!-- Test Assets use the minimum supported versions -->
<NETTestSdkMinimumVersion>16.5.0</NETTestSdkMinimumVersion>
<XunitVersion>2.3.1</XunitVersion>
<XunitTestAdapterVersion>2.3.1</XunitTestAdapterVersion>
<NUnitVersion>3.13.2</NUnitVersion>
<NUnitTestAdapterVersion>4.0.0</NUnitTestAdapterVersion>
<MSTestVersion>3.4.3</MSTestVersion>
</PropertyGroup>
</Project>
<!-- vim: set ft=xml : -->