Skip to content

Commit 2c9ea60

Browse files
updated build props to include license
1 parent 6e07755 commit 2c9ea60

2 files changed

Lines changed: 20 additions & 12 deletions

File tree

Directory.Build.props

Lines changed: 16 additions & 10 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 -->
28-
<PackageReleaseNotes>https://github.com/Stillpoint-Software/Hyperbee.Json/releases/latest</PackageReleaseNotes>
30+
<PackageReleaseNotes>https://github.com/Stillpoint-Software/PostgresTest/releases/latest</PackageReleaseNotes>
2931

30-
<!-- Repository metadata (shows on NuGet) -->
31-
<RepositoryUrl>https://github.com/Stillpoint-Software/Hyperbee.Json</RepositoryUrl>
32+
<RepositoryUrl>https://github.com/Stillpoint-Software/PostgresTest</RepositoryUrl>
3233
<RepositoryType>git</RepositoryType>
33-
<PackageProjectUrl>https://github.com/Stillpoint-Software/Hyperbee.Json</PackageProjectUrl>
34+
<PackageProjectUrl>https://github.com/Stillpoint-Software/PostgresTest</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.Json.sln

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ MinimumVisualStudioVersion = 10.0.40219.1
55
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{870D9301-BE3D-44EA-BF9C-FCC2E87FE4CD}"
66
ProjectSection(SolutionItems) = preProject
77
Directory.Build.props = Directory.Build.props
8+
LICENSE = LICENSE
9+
README.md = README.md
810
version.json = version.json
911
EndProjectSection
1012
EndProject
@@ -20,9 +22,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{1FA7
2022
EndProject
2123
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{4DBDB7F5-3F66-4572-80B5-3322449C77A4}"
2224
ProjectSection(SolutionItems) = preProject
23-
.github\workflows\deploy-gh-pages.yml = .github\workflows\deploy-gh-pages.yml
24-
.github\workflows\create_test_report.yml = .github\workflows\create_test_report.yml
2525
.github\workflows\create_release.yml = .github\workflows\create_release.yml
26+
.github\workflows\create_test_report.yml = .github\workflows\create_test_report.yml
27+
.github\workflows\deploy-gh-pages.yml = .github\workflows\deploy-gh-pages.yml
2628
.github\workflows\format.yml = .github\workflows\format.yml
2729
.github\workflows\issue_branch.yml = .github\workflows\issue_branch.yml
2830
.github\workflows\pack_publish.yml = .github\workflows\pack_publish.yml

0 commit comments

Comments
 (0)