Repository navigation
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
89 lines (76 loc) · 4.6 KB
/
Copy pathDirectory.Build.props
File metadata and controls
89 lines (76 loc) · 4.6 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<Project>
<!-- Settings shared by every project. A project may still override any of these locally,
but nothing here should need to be repeated in a .csproj. -->
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<PropertyGroup>
<Authors>Arnel Robles</Authors>
<Company>BaryoDev</Company>
<Product>BarakoCMS</Product>
<Copyright>Copyright © BaryoDev</Copyright>
<!-- D24 (DECISIONS.md): the engine stays MPL-2.0, everything built on it is MIT. The engine here
is the core and the contract package split out of it, whose files came from the core and
keep its licence. Every other package, a new module included, is MIT without saying so.
scripts/check-licences.sh evaluates each packable project and fails on a mismatch. -->
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageLicenseExpression Condition="'$(MSBuildProjectName)' == 'barakoCMS' or '$(MSBuildProjectName)' == 'BarakoCMS.Abstractions'">MPL-2.0</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/baryodev/barakoCMS</PackageProjectUrl>
<RepositoryUrl>https://github.com/baryodev/barakoCMS</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<!-- Every package carries the bean, so the modules read as one family on nuget.org rather than
as a dozen unrelated packages sharing a prefix. -->
<PackageIcon>icon.png</PackageIcon>
<!-- `barakocms-module` is the discovery tag: one search on nuget.org returns the whole module
set, and it is what gets a community package listed rather than merely published. A module
may append its own tags. -->
<PackageTags>barakocms;barakocms-module;headless-cms;cms;dotnet;aspnetcore;marten</PackageTags>
</PropertyGroup>
<!-- A package with no README renders as an empty page on nuget.org, which is where most people
decide whether to install it. Conditional so adding a project never breaks the build; the
packaging test asserts every packable project actually has one. -->
<PropertyGroup Condition="Exists('$(MSBuildProjectDirectory)/README.md')">
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>
<!-- Ship XML docs so consumers get IntelliSense on the public API. The doc comments in this
codebase carry most of the "why", and without this they stop at the assembly boundary.
CS1591 is silenced: warning on every undocumented public member would bury real warnings. -->
<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);CS1591</NoWarn>
</PropertyGroup>
<!-- Source Link + symbols: a consumer debugging into a module steps into real source instead of
decompiled output. -->
<PropertyGroup>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<ItemGroup>
<!-- Per-module icon when the project ships one, else the shared BarakoDev icon. Both pack as
icon.png, so PackageIcon stays a single inherited value in this file. -->
<None Include="$(MSBuildProjectDirectory)/assets/icon.png" Pack="true" PackagePath="/" Visible="false" Condition="Exists('$(MSBuildProjectDirectory)/assets/icon.png')" />
<None Include="$(MSBuildThisFileDirectory)assets/icon.png" Pack="true" PackagePath="/" Visible="false" Condition="!Exists('$(MSBuildProjectDirectory)/assets/icon.png')" />
<None Include="README.md" Pack="true" PackagePath="/" Condition="Exists('$(MSBuildProjectDirectory)/README.md')" />
</ItemGroup>
<PropertyGroup>
<AnalysisLevel>latest</AnalysisLevel>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
</PropertyGroup>
<!-- Deterministic paths on the build server so binaries are reproducible.
https://github.com/clairernovotny/DeterministicBuilds -->
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
<!-- Every project writes packages.lock.json and commits it. A transitive bump then shows up as a
diff instead of arriving silently, and CI restores in locked mode so a stale lock fails
the build rather than being regenerated. It is also what makes GitHub attribute the
dependency graph to this repository (#158). -->
<PropertyGroup>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>
</Project>