Skip to content

Allow creating deterministic packages - #2989

Merged
nkolev92 merged 15 commits into
devfrom
dev-nkolev92-deterministic
Aug 13, 2019
Merged

nkolev92 merged 15 commits into
devfrom
dev-nkolev92-deterministic

Conversation

@nkolev92

@nkolev92 nkolev92 commented Aug 8, 2019 •

Copy link
Copy Markdown
Member

Bug

Fixes: NuGet/Home#6229
Regression: No

  • Last working version:
  • How are we preventing it in future:

Fix

Details:
Replaces #2775.

NuGet pack uses guids and the current time during package generation.
We need a deterministic option to support what the compiler provides.

The analysis was done by @tmat and most of the work by @ctaggart
I just took Cameron's changes and did some work on top of that.

In NuGet.exe we are introducing a -Deterministic switch on the pack command.

With csproj pack, we will start respecting the Deterministic property.

Testing/Validation

Tests Added: Yes
Reason for not adding tests:
Validation:

@zkat zkat left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just making some comments with the context I happen to have. PR looks good to me :)

@nkolev92

Copy link
Copy Markdown
Member Author

omajid added a commit to omajid/dotnet-nuget-client that referenced this pull request Jul 21, 2025
When building nuspec-based packages, the deterministic-mode
configuration is not flowed correctly to the PackageBuilder class (which
is initialized using this PackArgs object). Seems like this was missed
from the initial deterministic support in
NuGet#2989.

This commit is a no-op until deterministic mode is enabled and
NuGet/Home#8601 is fixed.
omajid added a commit to omajid/dotnet-nuget-client that referenced this pull request Dec 29, 2025
When building nuspec-based packages, the deterministic-mode
configuration is not flowed correctly to the PackageBuilder class (which
is initialized using this PackArgs object). Seems like this was missed
from the initial deterministic support in
NuGet#2989.

This commit is a no-op until deterministic mode is enabled and
NuGet/Home#8601 is fixed.
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.

Enable NuGet Pack to be deterministic

5 participants