Repository navigation
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
34 lines (30 loc) · 2.27 KB
/
Copy pathDirectory.Build.props
File metadata and controls
34 lines (30 loc) · 2.27 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
<Project>
<!-- Built inside the host's backend (this repository is a submodule at backend/src/Hostpanel.Sdk there) the host's own
props apply first. The file found above this folder is imported only when it sits in a folder named backend/src: any
other Directory.Build.props higher up the tree (a monorepo, a workspace, a build agent's parent folder) belongs to
something else, and importing it would change this package's build without anyone choosing that. Built on its own,
or under any other layout, nothing is imported. -->
<PropertyGroup>
<HostBackendProps>$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))</HostBackendProps>
<HostBackendFolder Condition="'$(HostBackendProps)' != ''">$([System.IO.Path]::GetDirectoryName('$(HostBackendProps)').Replace('\', '/'))</HostBackendFolder>
<HostBackendIsExpected Condition="'$(HostBackendFolder)' != '' And $(HostBackendFolder.ToLowerInvariant().EndsWith('/backend/src'))">true</HostBackendIsExpected>
</PropertyGroup>
<Import Project="$(HostBackendProps)" Condition="'$(HostBackendIsExpected)' == 'true'" />
<PropertyGroup>
<!-- The one version of both packages, Hostpanel.Sdk and Hostpanel.Sdk.Packaging: a plugin author and a host pin one
number for the pair. Bump the minor for an added member, the major for a removed or renamed one.
.github/workflows/publish.yml reads this line and packs both projects with it. -->
<Version>3.17.1</Version>
</PropertyGroup>
<PropertyGroup>
<!-- Identity of the two packages, Hostpanel.Sdk and Hostpanel.Sdk.Packaging. MIT, unlike the AGPL-3.0 host: a plugin
compiled against these contracts is its author's to license, free or paid, open or closed. The expression is what
NuGet shows; the LICENSE file at the root carries the full text and is packed too. -->
<Authors>Hostpanel contributors</Authors>
<Copyright>Copyright (c) 2024-2026 the Hostpanel contributors</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/innovayse/hostpanel-sdk</PackageProjectUrl>
<RepositoryUrl>https://github.com/innovayse/hostpanel-sdk.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
</Project>