-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
74 lines (63 loc) · 3.01 KB
/
Directory.Build.props
File metadata and controls
74 lines (63 loc) · 3.01 KB
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
<Project>
<PropertyGroup>
<CommonPackageTags>optional partial json undefined jsonpatch jsonmergepatch patch
System.Text.Json Api unspecified</CommonPackageTags>
</PropertyGroup>
<PropertyGroup>
<GitVersionBaseDirectory>$(MSBuildThisFileDirectory)</GitVersionBaseDirectory>
<!-- Analysis settings -->
<LangVersion>latest</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AnalysisMode>Default</AnalysisMode>
<AnalysisLevel>latest</AnalysisLevel>
<TreatWarningsAsErrors Condition="$(Configuration) == 'Release'">true</TreatWarningsAsErrors>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
</PropertyGroup>
<!-- More strict analysis settings for packable projects -->
<PropertyGroup Condition="'$(IsPackable)' == 'true'">
<AnalysisMode>All</AnalysisMode>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<!-- Symbols and debugging settings, set to true and portable for snupkg -->
<PropertyGroup>
<IncludeSymbols>true</IncludeSymbols>
<DebugType>portable</DebugType>
</PropertyGroup>
<Sdk Name="DotNet.ReproducibleBuilds.Isolated" Version="1.2.39" />
<ItemGroup>
<PackageReference Include="Nerdbank.GitVersioning" PrivateAssets="all" />
<PackageReference Include="DotNet.ReproducibleBuilds" PrivateAssets="All" />
</ItemGroup>
<ItemGroup Condition="'$(IsPackable)' == 'true'">
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" />
</ItemGroup>
<!-- Common nuget package properties -->
<PropertyGroup>
<Authors>Sjoerd van der Meer</Authors>
<Copyright>Copyright (c) Sjoerd van der Meer 2024.</Copyright>
<NeutralLanguage>en-US</NeutralLanguage>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageIcon>icon.png</PackageIcon>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/desjoerd/optionalvalues</RepositoryUrl>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<PackageProjectUrl>https://github.com/desjoerd/optionalvalues</PackageProjectUrl>
<!-- Create snupkg files for symbol packages -->
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<ItemGroup Condition="'$(IsPackable)' == 'true'">
<None Include="$(MSBuildThisFileDirectory)/README.md" CopyToPublishDirectory="Always"
Pack="true" PackagePath="\" />
<None Include="$(MSBuildThisFileDirectory)/LICENSE" CopyToPublishDirectory="Always" Pack="true"
PackagePath="\" />
<None Include="$(MSBuildThisFileDirectory)/assets/icon.png" CopyToPublishDirectory="Always"
Pack="true" PackagePath="\" />
</ItemGroup>
</Project>