Skip to content

Fix build#4043

Merged
ViktorHofer merged 4 commits intomainfrom
FixBuild
Jan 5, 2026
Merged

Fix build#4043
ViktorHofer merged 4 commits intomainfrom
FixBuild

Conversation

@ViktorHofer
Copy link
Member

@ViktorHofer ViktorHofer commented Jan 5, 2026

Fixes #4037
Fixes #3995

Copilot AI review requested due to automatic review settings January 5, 2026 10:11
@dotnet-policy-service dotnet-policy-service bot requested a review from a team January 5, 2026 10:12
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses build issues by applying a patch to fix assembly version calculation in 2026 and adding a workaround for a known dotnet issue.

  • Adds a patch to modify the FileVersion calculation for the azure-activedirectory-identitymodel-extensions-for-dotnet package
  • Excludes Microsoft.VisualStudio.TestPlatform.Common.dll from ReadyToRun publishing to work around #3995

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/source-build-reference-packages/src/externalPackages/patches/azure-activedirectory-identitymodel-extensions-for-dotnet/0002-Fix-assembly-version-calculation-in-2026.patch Adds a patch that modifies the FileVersion date format calculation to address year 2026 issues
src/roslyn/src/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/Microsoft.CodeAnalysis.LanguageServer.csproj Adds PublishReadyToRunExclude for a specific DLL as a workaround for a known dotnet issue

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI commented Jan 5, 2026

@ViktorHofer I've opened a new pull request, #4044, to work on those changes. Once the pull request is ready, I'll request review from you.

@ViktorHofer ViktorHofer merged commit e64f84d into main Jan 5, 2026
11 checks passed
@ViktorHofer ViktorHofer deleted the FixBuild branch January 5, 2026 13:06
@T-Gro
Copy link
Member

T-Gro commented Jan 5, 2026

Will this workaround get backported to 10.0.200 ?
I think it exhibits the same issue.

@mthalman
Copy link
Member

mthalman commented Jan 5, 2026

@ViktorHofer - Please create an issue for this in the identitymodel repo and link to it from the patch.

@ViktorHofer
Copy link
Member Author

@ViktorHofer
Copy link
Member Author

MichaelSimons pushed a commit to dotnet/source-build-reference-packages that referenced this pull request Jan 5, 2026
* Add patch to fix building identitymodel submodule

Partial backport of dotnet/dotnet#4043

* Fix FileVersion calculation in 2026 patch

Fixes the FileVersion calculation issue as reported in GitHub issue #3388.
MichaelSimons pushed a commit to dotnet/source-build-externals that referenced this pull request Jan 5, 2026
* Add patch to fix building identitymodel submodule

Partial backport of dotnet/dotnet#4043

* Delete patches/azure-activedirectory-identitymodel-extensions-for-dotnet/src/externalPackages/patches/azure-activedirectory-identitymodel-extensions-for-dotnet/0002-Fix-assembly-version-calculation-in-2026.patch

* Create 0002-Fix-assembly-version-calculation-in-2026.patch
stdmnpkg pushed a commit to AOSC-Tracking/dotnet that referenced this pull request Jan 5, 2026
Co-authored-by: Eric St. John <[email protected]>
@tmds
Copy link
Member

tmds commented Jan 6, 2026

@MichaelSimons
Copy link
Member

@tmds
Copy link
Member

tmds commented Jan 6, 2026

Great, thanks for the quick fixes @ViktorHofer and @MichaelSimons!

mulatta added a commit to mulatta/nixpkgs that referenced this pull request Jan 13, 2026
Starting in 2026, the FileVersion calculation formula
(Year-2019)*10000+MMdd in azure-activedirectory-identitymodel-extensions-for-dotnet
exceeds UInt16 max (65535), causing CS7035 build errors.

- dotnet 8: patch updateAssemblyInfo.sh (from v8.0.122 tarball)
- dotnet 9: patch build/common.props (from v9.0.112 tarball)
- dotnet 10: use externalPackages/patches/ mechanism

New formula: 61232 + (year_offset * 416) + (month * 32) + day
(valid until 2029, long-term fix needed upstream)

Upstream: dotnet/dotnet#4043
mulatta added a commit to mulatta/nixpkgs that referenced this pull request Jan 13, 2026
Starting in 2026, the FileVersion calculation formula
(Year-2019)*10000+MMdd in azure-activedirectory-identitymodel-extensions-for-dotnet
exceeds UInt16 max (65535), causing CS7035 build errors.

- dotnet 8: add patch to patches/ directory as 0003 (after 0002)
- dotnet 9: patch build/common.props directly
- dotnet 10: use externalPackages/patches/ mechanism

New formula: 61232 + (year_offset * 416) + (month * 32) + day
(valid until 2029, long-term fix needed upstream)

Upstream: dotnet/dotnet#4043
mulatta added a commit to mulatta/nixpkgs that referenced this pull request Jan 13, 2026
Starting in 2026, the FileVersion calculation formula
(Year-2019)*10000+MMdd in azure-activedirectory-identitymodel-extensions-for-dotnet
exceeds UInt16 max (65535), causing CS7035 build errors.

- dotnet 8: add patch to patches/ directory as 0003 (after 0002)
- dotnet 9: patch build/common.props directly
- dotnet 10: use externalPackages/patches/ mechanism

New formula: 61232 + (year_offset * 416) + (month * 32) + day
(valid until 2029, long-term fix needed upstream)

Upstream: dotnet/dotnet#4043
mulatta added a commit to mulatta/nixpkgs that referenced this pull request Jan 13, 2026
Starting in 2026, the FileVersion calculation formula
(Year-2019)*10000+MMdd in azure-activedirectory-identitymodel-extensions-for-dotnet
exceeds UInt16 max (65535), causing CS7035 build errors.

- dotnet 8: add patch to patches/ directory as 0003 (after 0002)
- dotnet 9: patch build/common.props directly
- dotnet 10: use externalPackages/patches/ mechanism

New formula: 61232 + (year_offset * 416) + (month * 32) + day
(valid until 2029, long-term fix needed upstream)

Upstream: dotnet/dotnet#4043
ShreyaLaxminarayan added a commit to ShreyaLaxminarayan/dotnet-s390x that referenced this pull request Jan 16, 2026
1. Removed sdk ,runtime,aspnetcore,templating,roslyn,installer submodules. Source files of each product repository which are mirrored inside of their respective directories under  dotnet/src.
2. Backporting PR:dotnet/dotnet#4043  to resolve source build failing in 2026 due to minor version being number greater than 65535. Issue link: dotnet/dotnet#4037
3. Changed dotnet-build to incorporate the vmr way of building .NET sdk https://github.com/dotnet/dotnet
4. Note: VMR way of cross building is only supported on .NET 10 and above. Revert back to the older installer way of building if any previous versions are needed.


Signed-off-by: Shreya Rao <[email protected]>
ShreyaLaxminarayan added a commit to ShreyaLaxminarayan/dotnet-s390x that referenced this pull request Jan 16, 2026
1. Removed sdk ,runtime,aspnetcore,templating,roslyn,installer submodules. Source files of each product repository which are mirrored inside of their respective directories under  dotnet/src.
2. Backporting PR:dotnet/dotnet#4043  to resolve source build failing in 2026 due to minor version being number greater than 65535. Issue link: dotnet/dotnet#4037
3. Changed dotnet-build to incorporate the vmr way of building .NET sdk https://github.com/dotnet/dotnet
4. Note: VMR way of cross building is only supported on .NET 10 and above. Revert back to the older installer way of building if any previous versions are needed.


Signed-off-by: Shreya Rao <[email protected]>
ShreyaLaxminarayan added a commit to ShreyaLaxminarayan/dotnet-s390x that referenced this pull request Jan 16, 2026
1. Removed sdk ,runtime,aspnetcore,templating,roslyn,installer submodules. Source files of each product repository which are mirrored inside of their respective directories under  dotnet/src.
2. Backporting PR:dotnet/dotnet#4043  to resolve source build failing in 2026 due to minor version being number greater than 65535. Issue link: dotnet/dotnet#4037
3. Changed dotnet-build to incorporate the vmr way of building .NET sdk https://github.com/dotnet/dotnet
4. Note: VMR way of cross building is only supported on .NET 10 and above. Revert back to the older installer way of building if any previous versions are needed.


Signed-off-by: Shreya Rao <[email protected]>

Fixed branding paramater

Signed-off-by: Shreya Rao <[email protected]>
ShreyaLaxminarayan added a commit to ShreyaLaxminarayan/dotnet-s390x that referenced this pull request Jan 16, 2026
1. Removed sdk ,runtime,aspnetcore,templating,roslyn,installer submodules. Source files of each product repository which are mirrored inside of their respective directories under  dotnet/src.
2. Backporting PR:dotnet/dotnet#4043  to resolve source build failing in 2026 due to minor version being number greater than 65535. Issue link: dotnet/dotnet#4037
3. Changed dotnet-build to incorporate the vmr way of building .NET sdk https://github.com/dotnet/dotnet
4. Note: VMR way of cross building is only supported on .NET 10 and above. Revert back to the older installer way of building if any previous versions are needed.


Signed-off-by: Shreya Rao <[email protected]>

Fixed branding paramater

Signed-off-by: Shreya Rao <[email protected]>

Fix lint errors

Signed-off-by: Shreya Rao <[email protected]>
ShreyaLaxminarayan added a commit to ShreyaLaxminarayan/dotnet-s390x that referenced this pull request Jan 16, 2026
1. Removed sdk ,runtime,aspnetcore,templating,roslyn,installer submodules. Source files of each product repository which are mirrored inside of their respective directories under  dotnet/src.
2. Backporting PR:dotnet/dotnet#4043  to resolve source build failing in 2026 due to minor version being number greater than 65535. Issue link: dotnet/dotnet#4037
3. Changed dotnet-build to incorporate the vmr way of building .NET sdk https://github.com/dotnet/dotnet
4. Note: VMR way of cross building is only supported on .NET 10 and above. Revert back to the older installer way of building if any previous versions are needed.


Signed-off-by: Shreya Rao <[email protected]>

Fixed branding paramater

Signed-off-by: Shreya Rao <[email protected]>

Fix lint errors

Signed-off-by: Shreya Rao <[email protected]>
ShreyaLaxminarayan added a commit to ShreyaLaxminarayan/dotnet-s390x that referenced this pull request Jan 16, 2026
1. Removed sdk ,runtime,aspnetcore,templating,roslyn,installer submodules. Source files of each product repository which are mirrored inside of their respective directories under  dotnet/src.
2. Backporting PR:dotnet/dotnet#4043  to resolve source build failing in 2026 due to minor version being number greater than 65535. Issue link: dotnet/dotnet#4037
3. Changed dotnet-build to incorporate the vmr way of building .NET sdk https://github.com/dotnet/dotnet
4. Note: VMR way of cross building is only supported on .NET 10 and above. Revert back to the older installer way of building if any previous versions are needed.


Signed-off-by: Shreya Rao <[email protected]>

Fixed branding paramater

Signed-off-by: Shreya Rao <[email protected]>

Fix lint errors

Signed-off-by: Shreya Rao <[email protected]>
ShreyaLaxminarayan added a commit to ShreyaLaxminarayan/dotnet-s390x that referenced this pull request Jan 20, 2026
1. Removed sdk ,runtime,aspnetcore,templating,roslyn,installer submodules. Source files of each product repository which are mirrored inside of their respective directories under  dotnet/src.
2. Backporting PR:dotnet/dotnet#4043  to resolve source build failing in 2026 due to minor version being number greater than 65535. Issue link: dotnet/dotnet#4037
3. Changed dotnet-build to incorporate the vmr way of building .NET sdk https://github.com/dotnet/dotnet
4. Note: VMR way of cross building is only supported on .NET 10 and above. Revert back to the older installer way of building if any previous versions are needed.

5. Fixed branding paramater
6. Enabling building of older dotnet versions by manually applying the patch in source-build-externals.

Signed-off-by: Shreya Rao <[email protected]>
ShreyaLaxminarayan added a commit to ShreyaLaxminarayan/dotnet-s390x that referenced this pull request Jan 27, 2026
Removed sdk ,runtime,aspnetcore,templating,roslyn,installer submodules. Source files of each product repository which are mirrored inside of their respective directories under dotnet/src.
Backporting PR:Fix build dotnet/dotnet#4043 to resolve source build failing in 2026 due to minor version being number greater than 65535. Issue link: [Operational Issue]: Source build fails in 2026 dotnet/dotnet#4037
Changed dotnet-build to incorporate the vmr way of building .NET sdk https://github.com/dotnet/dotnet
Note: VMR way of cross building is only supported on .NET 10 and above. Revert back to the older installer way of building if any previous versions are needed.

Bumped to .NET 11

Signed-off-by: Shreya Rao <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

9 participants