Skip to content

Commit eeb5e3d

Browse files
updated build props to include license
1 parent b4570ad commit eeb5e3d

2 files changed

Lines changed: 17 additions & 10 deletions

File tree

Directory.Build.props

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,18 @@
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>
910
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1011
</PackageReference>
12+
13+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="4.14.0" />
1114
</ItemGroup>
1215

1316
<!-- SourceLink / build hygiene -->
1417
<PropertyGroup>
15-
<!-- Deterministic builds + embed sources for better debugging -->
1618
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
1719
<Deterministic>true</Deterministic>
1820
<EmbedUntrackedSources>true</EmbedUntrackedSources>
@@ -21,23 +23,27 @@
2123

2224
<!-- Package metadata applied only to packable projects -->
2325
<PropertyGroup Condition="'$(IsPackable)' == 'true'">
24-
<!-- NuGet README -->
2526
<PackageReadmeFile>README.md</PackageReadmeFile>
27+
<PackageLicenseFile>LICENSE</PackageLicenseFile>
28+
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
2629

27-
<!-- NuGet Release Notes link -->
2830
<PackageReleaseNotes>https://github.com/Stillpoint-Software/Hyperbee.Expressions/releases/latest</PackageReleaseNotes>
2931

30-
<!-- Repository metadata (shows on NuGet) -->
3132
<RepositoryUrl>https://github.com/Stillpoint-Software/Hyperbee.Expressions</RepositoryUrl>
3233
<RepositoryType>git</RepositoryType>
3334
<PackageProjectUrl>https://github.com/Stillpoint-Software/Hyperbee.Expressions</PackageProjectUrl>
3435
</PropertyGroup>
3536

36-
<!-- Pull the root README into the package root -->
37+
<!-- Pull README & LICENSE into the package root -->
3738
<ItemGroup Condition="'$(IsPackable)' == 'true'">
3839
<None Include="$(MSBuildThisFileDirectory)README.md"
3940
Pack="true"
4041
PackagePath="\"
41-
Link="README.md" />
42+
Link="README.md" />
43+
44+
<None Include="$(MSBuildThisFileDirectory)LICENSE"
45+
Pack="true"
46+
PackagePath="\"
47+
Link="LICENSE" />
4248
</ItemGroup>
43-
</Project>
49+
</Project>

Hyperbee.Expressions.sln

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{6103145C-EC79-4B5F-9CE6-8F10BFC6ACC5}"
77
ProjectSection(SolutionItems) = preProject
88
Directory.Build.props = Directory.Build.props
9+
LICENSE = LICENSE
910
version.json = version.json
1011
EndProjectSection
1112
EndProject
@@ -17,12 +18,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{23A5
1718
EndProject
1819
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{639ADCDD-E258-40E6-BBC3-70D71DE97191}"
1920
ProjectSection(SolutionItems) = preProject
20-
.github\workflows\deploy-gh-pages.yml = .github\workflows\deploy-gh-pages.yml
21-
.github\workflows\create_test_report.yml = .github\workflows\create_test_report.yml
2221
.github\workflows\create_release.yml = .github\workflows\create_release.yml
22+
.github\workflows\create_test_report.yml = .github\workflows\create_test_report.yml
23+
.github\workflows\deploy-gh-pages.yml = .github\workflows\deploy-gh-pages.yml
2324
.github\workflows\format.yml = .github\workflows\format.yml
24-
.github\workflows\pack_publish.yml = .github\workflows\pack_publish.yml
2525
.github\workflows\issue_branch.yml = .github\workflows\issue_branch.yml
26+
.github\workflows\pack_publish.yml = .github\workflows\pack_publish.yml
2627
.github\workflows\run_tests.yml = .github\workflows\run_tests.yml
2728
.github\workflows\unlist_package.yml = .github\workflows\unlist_package.yml
2829
EndProjectSection

0 commit comments

Comments
 (0)