Skip to content

Use deterministic values for _BuildNumber#16954

Draft
omajid wants to merge 1 commit into
dotnet:mainfrom
omajid:deterministic-buildnumbers
Draft

Use deterministic values for _BuildNumber#16954
omajid wants to merge 1 commit into
dotnet:mainfrom
omajid:deterministic-buildnumbers

Conversation

@omajid
Copy link
Copy Markdown
Member

@omajid omajid commented Jun 2, 2026

Use DeterministicTimestamp and SOURCE_BUILD_EPOCH to set a deterministic date for _BuildNumber instead of DateTime.Now

DeterministicTimetsamp and SOURCE_DATE_EPOCH are defined and documented in this NuGet spec:
https://github.com/NuGet/Home/blob/dev/accepted/2026/deterministic-pack-revisited.md

To double check:

Use `DeterministicTimestamp` and `SOURCE_BUILD_EPOCH` to set a
deterministic date for _BuildNumber instead of DateTime.Now

`DeterministicTimetsamp` and `SOURCE_DATE_EPOCH` are defined and
documented in this NuGet spec:
https://github.com/NuGet/Home/blob/dev/accepted/2026/deterministic-pack-revisited.md

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant