Conversation
There was a problem hiding this comment.
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.
...tory-identitymodel-extensions-for-dotnet/0002-Fix-assembly-version-calculation-in-2026.patch
Show resolved
Hide resolved
|
@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. |
|
Will this workaround get backported to 10.0.200 ? |
|
@ViktorHofer - Please create an issue for this in the identitymodel repo and link to it from the patch. |
|
AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet#3388 is the issue in the repo. |
Partial backport of dotnet/dotnet#4043
Partial backport of dotnet/dotnet#4043
|
Backports:
Couldn't find the same affected line of code in 8.0. |
* 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.
* 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
Co-authored-by: Eric St. John <[email protected]>
@ViktorHofer it's there, but implemented in a script: |
This was fixed in dotnet/source-build-externals@3cd5b46 |
|
Great, thanks for the quick fixes @ViktorHofer and @MichaelSimons! |
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
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
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
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
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
Fixes #4037
Fixes #3995