Skip to content

Commit bd6d69d

Browse files
committed
ci: embed README.md and changelog
1 parent d6dc937 commit bd6d69d

1 file changed

Lines changed: 23 additions & 4 deletions

File tree

src/Directory.Build.props

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,18 @@
2121
<!-- Recommended: Embed symbols containing Source Link in the main file (exe/dll) -->
2222
<DebugType>embedded</DebugType>
2323
<Deterministic>true</Deterministic>
24+
25+
<EnablePackageValidation>true</EnablePackageValidation>
26+
<GenerateCompatibilitySuppressionFile>true</GenerateCompatibilitySuppressionFile>
27+
<PackageValidationBaselineVersion>1.25.3</PackageValidationBaselineVersion>
2428
</PropertyGroup>
2529

30+
<Target Name="SetPackageReleaseNotes" BeforeTargets="GenerateNuspec">
31+
<PropertyGroup>
32+
<PackageReleaseNotes>$([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/../../CHANGELOG.md"))</PackageReleaseNotes>
33+
</PropertyGroup>
34+
</Target>
35+
2636
<PropertyGroup Label="NuGet package information">
2737
<PackageLicenseExpression>MIT</PackageLicenseExpression>
2838
<RepositoryUrl>https://github.com/bUnit-dev/bUnit</RepositoryUrl>
@@ -35,16 +45,25 @@
3545
<Product>bUnit</Product>
3646
<PublishRepositoryUrl>true</PublishRepositoryUrl>
3747
<PackageIcon>bunit-logo.png</PackageIcon>
48+
<PackageReadmeFile>README.md</PackageReadmeFile>
49+
<PackageLicenseFile>LICENSE</PackageLicenseFile>
3850
</PropertyGroup>
3951

4052
<ItemGroup>
41-
<None Include="..\..\bunit-logo.png" Pack="true" PackagePath="" Visible="false" />
53+
<None Include="..\..\bunit-logo.png" Pack="true" PackagePath="" Visible="false" />
54+
<None Include="..\..\README.md">
55+
<Pack>True</Pack>
56+
<PackagePath>\</PackagePath>
57+
</None>
58+
<None Include="..\..\LICENSE">
59+
<Pack>True</Pack>
60+
<PackagePath>\</PackagePath>
61+
</None>
4262
</ItemGroup>
43-
63+
4464
<ItemGroup>
4565
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
4666
<PackageReference Include="Nerdbank.GitVersioning" Version="3.6.133" PrivateAssets="All" />
47-
4867
</ItemGroup>
49-
68+
5069
</Project>

0 commit comments

Comments
 (0)