Skip to content

Set deterministic FileVersion for Newtonsoft.Json to match MSFT-shipped package#1613

Open
mthalman wants to merge 1 commit intodotnet:mainfrom
mthalman:issue5511
Open

Set deterministic FileVersion for Newtonsoft.Json to match MSFT-shipped package#1613
mthalman wants to merge 1 commit intodotnet:mainfrom
mthalman:issue5511

Conversation

@mthalman
Copy link
Copy Markdown
Member

The upstream Newtonsoft.Json build computes a date-based FileVersion revision via PowerShell. Since source-build uses dotnet pack without this override, the 4th component defaulted to 0. This adds FileVersionRevision and composes the FileVersion to match the official package.

Also updates the FileVersionRevision and ReleaseVersion validation tests to discover package IDs from build output instead of requiring explicit properties, and adds a new test that verifies release versions match built package output.

Fixes dotnet/source-build#5511

…ed package

The upstream Newtonsoft.Json build computes a date-based FileVersion
revision via PowerShell. Since source-build uses dotnet pack without
this override, the 4th component defaulted to 0. This adds
FileVersionRevision and composes the FileVersion to match the official
package.

Also updates the FileVersionRevision and ReleaseVersion validation
tests to discover package IDs from build output instead of requiring
explicit properties, and adds a new test that verifies release versions
match built package output.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mthalman mthalman requested a review from a team as a code owner March 24, 2026 20:14
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.

Newtonsoft.Json file version is missing revision component

1 participant