Skip to content

Commit 8ab8dad

Browse files
committed
ci: embed changelog.md into PackageReleaseNotes on pack
1 parent 909271c commit 8ab8dad

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
# Changelog
22

3-
All notable changes to TimeScheduler will be documented in this file.
3+
All notable changes to TimeProviderExtensions will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.0.0-preview.6]
9+
10+
- Added `Jump(TimeSpan)` and `Jump(DateTimeOffset)` methods that will jump time to the specified place. Any timer callbacks between the start and end of the jump will be invoked the expected number of times, but the date/time returned from `GetUtcNow()` and `GetTimestamp()` will always be the jump time. This differs from how `Advance` and `SetUtcNow` works. See the readme for a detailed description.
11+
812
## [1.0.0-preview.5]
913

1014
Aligned the public API surface of `ManualTimeProvider` with `Microsoft.Extensions.Time.Testing.FakeTimeProvider`. This means:

src/TimeProviderExtensions/CompatibilitySuppressions.xml

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/TimeProviderExtensions/TimeProviderExtensions.csproj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
<RepositoryUrl>https://github.com/egil/TimeProviderExtensions</RepositoryUrl>
1616
<RepositoryType>git</RepositoryType>
1717
<PackageLicenseFile>LICENSE</PackageLicenseFile>
18-
<PackageReleaseNotes>Release notes: https://github.com/egil/TimeProviderExtensions/blob/main/CHANGELOG.md</PackageReleaseNotes>
1918
<PublishRepositoryUrl>true</PublishRepositoryUrl>
2019
<EmbedUntrackedSources>true</EmbedUntrackedSources>
2120
<MinVerTagPrefix>v</MinVerTagPrefix>
@@ -25,7 +24,13 @@
2524
<!--<PackageValidationBaselineVersion>1.0.0</PackageValidationBaselineVersion>-->
2625
</PropertyGroup>
2726

28-
<PropertyGroup>
27+
<Target Name="SetPackageReleaseNotes" BeforeTargets="GenerateNuspec">
28+
<PropertyGroup>
29+
<PackageReleaseNotes>$([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/../../CHANGELOG.md"))</PackageReleaseNotes>
30+
</PropertyGroup>
31+
</Target>
32+
33+
<PropertyGroup>
2934
<TargetFrameworks>net8.0;net6.0</TargetFrameworks>
3035
<ImplicitUsings>enable</ImplicitUsings>
3136
<Nullable>enable</Nullable>

0 commit comments

Comments
 (0)