-
Notifications
You must be signed in to change notification settings - Fork 2
/
Directory.Build.props
103 lines (94 loc) · 4.74 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<Project>
<!-- project global settings -->
<PropertyGroup>
<!-- Enable the new nullability syntax and analyzing -->
<Nullable>enable</Nullable>
<!-- Allow using `init` and records in .NET Core versions prior to .NET 5 -->
<LangVersion>9.0</LangVersion>
<!-- 1591: Ignore missing inline documentation. *reenabled* -->
<!-- CA1062: Prefer T? for possible nulls. -->
<!-- CA2225: Don't want operators to have methods.. -->
<!-- CA1303: Don't localize internal strings. -->
<!-- CA2007: Don't use .ConfigureAwait() -->
<!-- CA1032: Exceptional exceptions... -->
<NoWarn>$(NoWarn);CA1062;CA2225;CA1303;CA2007;CA1032</NoWarn>
<RollForward>major</RollForward>
<!-- Generate XMLdocs -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!-- Disable system locales -->
<InvariantGlobalization>true</InvariantGlobalization>
<NeutralLanguage>en</NeutralLanguage>
<!-- Ensure code style is followed, with heightened warnings -->
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisLevel>5.0</AnalysisLevel>
<!-- Meta info -->
<Authors>Ashleigh Adams</Authors>
<RepositoryType>git</RepositoryType>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<Copyright>Copyright 2022 Ashleigh Adams</Copyright>
<PackageIcon>images/packageicon.png</PackageIcon>
</PropertyGroup>
<ItemGroup>
<!-- Allow using `init` and records in .NET Core versions prior to .NET 5 -->
<PackageReference Include="IsExternalInit" Version="1.0.3" PrivateAssets="All" />
<!-- Nullable reference types for netstandard2.0 -->
<PackageReference Include="Nullable" Version="1.3.1" PrivateAssets="All" />
</ItemGroup>
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)/.meta/packageicon.png" Pack="true" PackagePath="/images/" Visible="false" />
</ItemGroup>
<!-- Automatic versioning -->
<PropertyGroup>
<MinVerTagPrefix>v</MinVerTagPrefix>
<!-- delete/set to patch the line below once almost out of v0.x.y (preferably once on a beta or rc). -->
<MinVerAutoIncrement>patch</MinVerAutoIncrement>
<MinVerMinimumMajorMinor>2.3</MinVerMinimumMajorMinor>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MinVer" Version="4.3.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
<!-- Deterministic CI builds, normalizing file paths etc... -->
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<Deterministic>true</Deterministic>
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
<!-- SourceLink support -->
<PropertyGroup>
<!-- Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<!-- Embed source files that are not tracked by the source control manager in the PDB -->
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<!-- Embed all sources instead of git links -->
<!--<EmbedAllSources>true</EmbedAllSources>-->
<!-- Embed symbols containing Source Link in the main file (exe/dll) -->
<!--<DebugType>embedded</DebugType>-->
<!-- Build symbol package (.snupkg) to distribute the PDB containing Source Link -->
<!--<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>-->
<!-- Embed symbols containing Source Link in the NuGet package -->
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
<!-- <PackageReference Include="Microsoft.SourceLink.Bitbucket.Git" Version="1.0.0" PrivateAssets="All"/>
<SourceLinkBitbucketHost Include="bitbucket.ingg.com"/>-->
</ItemGroup>
<!-- Code analyizers: https://github.com/dotnet/roslyn-analyzers -->
<PropertyGroup>
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" Version="3.3.4" PrivateAssets="All" />
<AdditionalFiles Include="$(MSBuildThisFileDirectory)/.meta/BannedSymbols.txt" />
</ItemGroup>
<ItemGroup Condition="Exists('PublicAPI.Shipped.txt')">
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.3.4" PrivateAssets="All" />
<AdditionalFiles Include="PublicAPI.Shipped.txt" />
<AdditionalFiles Include="PublicAPI.Unshipped.txt" />
</ItemGroup>
</Project>