Skip to content

Fix FileVersion format to use two-digit year and day of year#3389

Merged
thejaswinic merged 1 commit intodevfrom
thejac/fixFileVersionFormat
Jan 6, 2026
Merged

Fix FileVersion format to use two-digit year and day of year#3389
thejaswinic merged 1 commit intodevfrom
thejac/fixFileVersionFormat

Conversation

@thejaswinic
Copy link
Copy Markdown
Contributor

Fix FileVersion format to use two-digit year and day of year

  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • If any gains or losses in performance are possible, you've included benchmarks for your changes. More info
  • There's an open issue for the PR that you are making. If you'd like to propose a new feature or change, please open an issue to discuss the change or find an existing issue.

Summary

The FileVersion assembly attribute generates a revision number that exceeds the 16-bit unsigned integer limit (65,535).

Description

Root Cause
The FileVersion assembly attribute generates a revision number that exceeds the 16-bit unsigned integer limit (65,535).

Current Format: {Version}.{YearsSince2019}{MMdd}

Example for Jan 5, 2026: 8.12.1.70105
Major: 8
Minor: 12
Build: 1
Revision: 70105 (7 for year + 0105 for date)
The Issue:

.NET assembly version components must be ≤ 65,535
Starting January 1, 2026 (year 7 since 2019), the revision number exceeds this limit
Any date in 2026 produces: 70001 to 71231 (all > 65,535)

Fix:
Use YYDDD (Day of Year)
Format: {YY}{DDD} where DDD is day of year (001-366)

Example Jan 5, 2026: 8.12.1.26005
Range: 26001 to 26366
Valid until: 2029 (year 10 would create 100XX

Fixes #{Bug 3481482} (https://identitydivision.visualstudio.com/Engineering/_workitems/edit/3481482)

@thejaswinic thejaswinic requested a review from a team as a code owner January 6, 2026 20:41
@thejaswinic thejaswinic merged commit bcd41b7 into dev Jan 6, 2026
6 checks passed
@keegan-caruso keegan-caruso mentioned this pull request Jan 7, 2026
14 tasks
This was referenced Feb 13, 2026
This was referenced Mar 26, 2026
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.

5 participants