Repository navigation
Allow creating deterministic packages - #2989
Merged
Merged
Conversation
nkolev92
requested review from
dominoFire,
donnie-msft,
dtivel,
heng-liu,
kartheekp-ms,
zivkan and
zkat
August 8, 2019 22:37
zkat
reviewed
Aug 9, 2019
zkat
left a comment
Contributor
There was a problem hiding this comment.
Just making some comments with the context I happen to have. PR looks good to me :)
zivkan
approved these changes
Aug 9, 2019
…ndTest.cs Co-Authored-By: Andy Zivkovic <[email protected]>
…ests.cs Co-Authored-By: Andy Zivkovic <[email protected]>
…CommandTests.cs" :wq :wq This reverts commit 1078fa1.
…ackCommandTest.cs" This reverts commit bacb1cf.
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.
3 tasks
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
Fixes: NuGet/Home#6229
Regression: No
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: