Skip to content

Commit 48644a1

Browse files
updated build props to include LICENSE
1 parent 459f521 commit 48644a1

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

Directory.Build.props

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<ItemGroup>
44
<!-- NBGV drives versions; PrivateAssets=all keeps it out of consumers -->
55
<PackageReference Include="Nerdbank.GitVersioning" Version="3.8.38-alpha" PrivateAssets="all" />
6+
67
<!-- SourceLink for GitHub -->
78
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
89
<PrivateAssets>all</PrivateAssets>
@@ -12,7 +13,6 @@
1213

1314
<!-- SourceLink / build hygiene -->
1415
<PropertyGroup>
15-
<!-- Deterministic builds + embed sources for better debugging -->
1616
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
1717
<Deterministic>true</Deterministic>
1818
<EmbedUntrackedSources>true</EmbedUntrackedSources>
@@ -21,23 +21,27 @@
2121

2222
<!-- Package metadata applied only to packable projects -->
2323
<PropertyGroup Condition="'$(IsPackable)' == 'true'">
24-
<!-- NuGet README -->
2524
<PackageReadmeFile>README.md</PackageReadmeFile>
25+
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
26+
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
2627

27-
<!-- NuGet Release Notes link -->
2828
<PackageReleaseNotes>https://github.com/Stillpoint-Software/Hyperbee.Templating/releases/latest</PackageReleaseNotes>
2929

30-
<!-- Repository metadata (shows on NuGet) -->
3130
<RepositoryUrl>https://github.com/Stillpoint-Software/Hyperbee.Templating</RepositoryUrl>
3231
<RepositoryType>git</RepositoryType>
3332
<PackageProjectUrl>https://github.com/Stillpoint-Software/Hyperbee.Templating</PackageProjectUrl>
3433
</PropertyGroup>
3534

36-
<!-- Pull the root README into the package root -->
35+
<!-- Pull README & LICENSE into the package root -->
3736
<ItemGroup Condition="'$(IsPackable)' == 'true'">
3837
<None Include="$(MSBuildThisFileDirectory)README.md"
3938
Pack="true"
4039
PackagePath="\"
4140
Link="README.md" />
41+
42+
<None Include="$(MSBuildThisFileDirectory)LICENSE.txt"
43+
Pack="true"
44+
PackagePath="\"
45+
Link="LICENSE.txt" />
4246
</ItemGroup>
4347
</Project>

0 commit comments

Comments
 (0)