-
Notifications
You must be signed in to change notification settings - Fork 15
/
Directory.Build.props
65 lines (52 loc) · 2.51 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
<?xml version="1.0" encoding="utf-8"?>
<Project>
<!-- Dogfooding - add the latest ReferenceTrimmer package to this repo's build.
Condition is used in src\Package\ReferenceTrimmer.Package.csproj to avoid a cycle. -->
<ItemGroup Condition=" '$(DisableRefTrimPackageRef)' != 'true' ">
<PackageReference Include="ReferenceTrimmer" Version="3.*" PrivateAssets="All" />
</ItemGroup>
<PropertyGroup>
<RepoRoot>$(MSBuildThisFileDirectory.TrimEnd('\\'))</RepoRoot>
<Nullable>Enable</Nullable>
<!-- Be strict with warnings -->
<MSBuildTreatWarningsAsErrors>true</MSBuildTreatWarningsAsErrors>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<!-- Enabled the built-in analyzers -->
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<AnalysisMode>Recommended</AnalysisMode>
<!-- See https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0005 -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!-- Enable implicit usings -->
<ImplicitUsings>Enable</ImplicitUsings>
<LangVersion>Latest</LangVersion>
<!-- Embed symbols in the assembly for easier debugging -->
<DebugType>embedded</DebugType>
<!--
This all runs in the context of other processes, so we don't have control of the dependencies.
Furthermore, we intentionally target lower versions for best compatibility.
-->
<NuGetAudit>false</NuGetAudit>
</PropertyGroup>
<!-- Packaging -->
<PropertyGroup>
<Authors>David Federman</Authors>
<Copyright>© David Federman. All rights reserved.</Copyright>
<Description>Easily identify which dependencies can be removed from an MSBuild project.</Description>
<PackageProjectUrl>https://github.com/dfederm/ReferenceTrimmer</PackageProjectUrl>
<RepositoryUrl>https://github.com/dfederm/ReferenceTrimmer.git</RepositoryUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup>
<!-- Source Link (https://github.com/dotnet/sourcelink) -->
<PropertyGroup>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
</ItemGroup>
<!-- Versioning (https://github.com/dotnet/Nerdbank.GitVersioning) -->
<ItemGroup>
<PackageReference Include="Nerdbank.GitVersioning" Version="3.5.109" PrivateAssets="all" />
</ItemGroup>
</Project>