/
Directory.Build.props
60 lines (54 loc) · 2.5 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
<Project>
<PropertyGroup Label="Build Properties">
<LangVersion>latest</LangVersion>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<AnalysisLevel>latest</AnalysisLevel>
<AnalysisMode>All</AnalysisMode>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors Condition="'$(Configuration)' == 'Release'">true</TreatWarningsAsErrors>
<!--
# CA1031: Do not catch general exception types
# Justification: Build tasks intercept exceptions to provide concise warnings to MSBuild without stopping the build
# https://docs.microsoft.com/en-us/visualstudio/code-quality/ca1031
#
# CA2201: Do not raise reserved exception types
# Justification: Lazy.
# https://docs.microsoft.com/en-us/visualstudio/code-quality/ca2201
-->
<NoWarn>CA1031;CA2201;</NoWarn>
</PropertyGroup>
<PropertyGroup Label="Test Project Build Properties" Condition="$(MSBuildProjectName.EndsWith('Tests'))">
<IsTestProject>true</IsTestProject>
<IsPackable>false</IsPackable>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<!--
# CA1707: Identifiers should not contain underscores
# Justification: Test method names may contain underscores
# https://docs.microsoft.com/en-us/visualstudio/code-quality/ca1707
-->
<NoWarn>CA1707,$(NoWarn)</NoWarn>
</PropertyGroup>
<PropertyGroup Label="Package/Assembly Manifest Properties">
<Authors>Michael J Rasicci</Authors>
<Company>MJRasicci</Company>
<Product>$(MSBuildProjectName)</Product>
<PackageId>$(MSBuildProjectName)</PackageId>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/$(Company)/$(SolutionName)</PackageProjectUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageReleaseNotes>$(PackageProjectUrl)/releases</PackageReleaseNotes>
<RepositoryUrl>$(PackageProjectUrl).git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<Copyright>Copyright © $(Company) $([System.DateTime]::Now.ToString(yyyy))</Copyright>
</PropertyGroup>
<PropertyGroup Label="Versioning">
<MinVerMinimumMajorMinor>0.1</MinVerMinimumMajorMinor>
<MinVerTagPrefix>v</MinVerTagPrefix>
<MinVerDefaultPreReleaseIdentifiers>dev</MinVerDefaultPreReleaseIdentifiers>
<MinVerVerbosity>minimal</MinVerVerbosity>
</PropertyGroup>
<ItemGroup Label="Package References">
<PackageReference Include="MinVer" PrivateAssets="all" Version="4.3.0" />
</ItemGroup>
</Project>