Skip to content

Commit 4ef5dbc

Browse files
updated build props to include license
1 parent 12e1a6b commit 4ef5dbc

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

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.Pipeline/releases/latest</PackageReleaseNotes>
2931

30-
<!-- Repository metadata (shows on NuGet) -->
3132
<RepositoryUrl>https://github.com/Stillpoint-Software/Hyperbee.Pipeline</RepositoryUrl>
3233
<RepositoryType>git</RepositoryType>
3334
<PackageProjectUrl>https://github.com/Stillpoint-Software/Hyperbee.Pipeline</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.Pipeline.sln

Lines changed: 5 additions & 4 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", "{870D9301-BE3D-44EA-BF9C-FCC2E87FE4CD}"
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", "{1FA7
1718
EndProject
1819
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{4DBDB7F5-3F66-4572-80B5-3322449C77A4}"
1920
ProjectSection(SolutionItems) = preProject
20-
.github\workflows\format.yml = .github\workflows\format.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
23-
.github\workflows\run_tests.yml = .github\workflows\run_tests.yml
24-
.github\workflows\pack_publish.yml = .github\workflows\pack_publish.yml
22+
.github\workflows\create_test_report.yml = .github\workflows\create_test_report.yml
23+
.github\workflows\format.yml = .github\workflows\format.yml
2524
.github\workflows\issue_branch.yml = .github\workflows\issue_branch.yml
25+
.github\workflows\pack_publish.yml = .github\workflows\pack_publish.yml
26+
.github\workflows\run_tests.yml = .github\workflows\run_tests.yml
2627
.github\workflows\unlist_package.yml = .github\workflows\unlist_package.yml
2728
EndProjectSection
2829
EndProject

0 commit comments

Comments
 (0)