Skip to content

Commit

Permalink
ci: embed README.md and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
egil committed Nov 24, 2023
1 parent d6dc937 commit bd6d69d
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,18 @@
<!-- Recommended: Embed symbols containing Source Link in the main file (exe/dll) -->
<DebugType>embedded</DebugType>
<Deterministic>true</Deterministic>

<EnablePackageValidation>true</EnablePackageValidation>
<GenerateCompatibilitySuppressionFile>true</GenerateCompatibilitySuppressionFile>
<PackageValidationBaselineVersion>1.25.3</PackageValidationBaselineVersion>
</PropertyGroup>

<Target Name="SetPackageReleaseNotes" BeforeTargets="GenerateNuspec">
<PropertyGroup>
<PackageReleaseNotes>$([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/../../CHANGELOG.md"))</PackageReleaseNotes>
</PropertyGroup>
</Target>

<PropertyGroup Label="NuGet package information">
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/bUnit-dev/bUnit</RepositoryUrl>
Expand All @@ -35,16 +45,25 @@
<Product>bUnit</Product>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<PackageIcon>bunit-logo.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
</PropertyGroup>

<ItemGroup>
<None Include="..\..\bunit-logo.png" Pack="true" PackagePath="" Visible="false" />
<None Include="..\..\bunit-logo.png" Pack="true" PackagePath="" Visible="false" />
<None Include="..\..\README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="..\..\LICENSE">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
<PackageReference Include="Nerdbank.GitVersioning" Version="3.6.133" PrivateAssets="All" />

</ItemGroup>

</Project>

0 comments on commit bd6d69d

Please sign in to comment.