Skip to content

Set DeterministicTimestamps on nuget packages#16787

Merged
akoeplinger merged 1 commit into
dotnet:mainfrom
omajid:set-deterministic-timestamp-nuget-client
May 14, 2026
Merged

Set DeterministicTimestamps on nuget packages#16787
akoeplinger merged 1 commit into
dotnet:mainfrom
omajid:set-deterministic-timestamp-nuget-client

Conversation

@omajid
Copy link
Copy Markdown
Member

@omajid omajid commented May 11, 2026

When creating NuGet packages, set the deterministic timestamp on them,
if possible. Setting the timestamp makes the nuget packages
reproducible/deterministic.

See the deterministic pack spec for details:
NuGet/Home#14785

For the larger context on what I am trying to do, see:
dotnet/source-build#4963

Resolves: #16623

To double check:

@omajid
Copy link
Copy Markdown
Member Author

omajid commented May 11, 2026

This should be a no-op until we are building against something that includes NuGet/NuGet.Client#7020

akoeplinger
akoeplinger previously approved these changes May 12, 2026
Comment thread src/Microsoft.DotNet.Build.Tasks.Packaging/src/NuGetPack.cs Outdated
When creating NuGet packages, set the deterministic timestamp on them,
if possible. Setting the timestamp makes the nuget packages
reproducible/deterministic.

See the deterministic pack spec for details:
NuGet/Home#14785

For the larger context on what I am trying to do, see:
dotnet/source-build#4963

Resolves: dotnet#16623
@omajid omajid force-pushed the set-deterministic-timestamp-nuget-client branch from 8f44160 to 1137230 Compare May 13, 2026 16:27
@omajid omajid marked this pull request as ready for review May 13, 2026 17:20
@akoeplinger akoeplinger merged commit 83c4f08 into dotnet:main May 14, 2026
9 checks passed
@omajid
Copy link
Copy Markdown
Member Author

omajid commented May 15, 2026

Thanks!

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.

Taking a dependency on a recent nuget version?

2 participants