Skip to content

[ci] Remove duplicate .cab signing entry - #36945

Merged
kubaflo merged 1 commit into
mainfrom
rmarinho-fix-duplicate-cab-signing-main
Jul 30, 2026
Merged

kubaflo merged 1 commit into
mainfrom
rmarinho-fix-duplicate-cab-signing-main

Conversation

@rmarinho

Copy link
Copy Markdown
Member

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Ports the .cab signing fix from #36879 (merged into release/11.0.1xx-preview7) to main.

Duplicate .cab signing entry

The internal Pack, Sign task fails with:

Sign.proj(74,5): error : Multiple certificates for extension '.cab' defined for CollisionPriorityId ''.
There should be one certificate per extension per collision priority id.

Cause: PR #35026 added an explicit .cab FileExtensionSignInfo to eng/Signing.props, but Arcade's built-in Sign.props already registers .cab by default:

<FileExtensionSignInfo Include=".dll;.exe;.mibc;.msi;.cab" CertificateName="Microsoft400" />

Fix: Remove the duplicate entry. Cab files inside workload MSIs are still signed with Microsoft400 via the Arcade default, so no signing coverage is lost. The ReconnectModal.razor.js FileSignInfo entry from #35026 is kept.

Note on the second fix in #36879

#36879 also restored a missing MicrosoftWixVersion property in eng/Versions.props. That part does not apply to main — main has not taken the WiX 6 migration and still uses Microsoft.Signed.WiX / $(MicrosoftSignedWixVersion) in eng/NuGetVersions.targets. There is no $(MicrosoftWixVersion) reference anywhere on main, so adding the property would be dead config.

Arcade's built-in Sign.props already registers .cab with the
Microsoft400 certificate via:

  <FileExtensionSignInfo Include=".dll;.exe;.mibc;.msi;.cab" CertificateName="Microsoft400" />

Redefining .cab in eng/Signing.props causes SignToolTask to fail
during the internal 'Pack, Sign' step with:

  error : Multiple certificates for extension '.cab' defined for
  CollisionPriorityId ''. There should be one certificate per
  extension per collision priority id.

Cab files embedded inside workload MSIs will still be signed with
Microsoft400 via Arcade's default, so no signing coverage is lost.

Port of #36879 to main.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 515c328a-83aa-4348-9548-4d45f97760c0
Copilot AI review requested due to automatic review settings July 30, 2026 14:39
@rmarinho
rmarinho temporarily deployed to copilot-pat-pool July 30, 2026 14:39 — with GitHub Actions Inactive
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 36945

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 36945"

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 removes a duplicate .cab signing configuration entry from MAUI’s signing props to resolve an internal signing failure caused by multiple certificates being registered for the same file extension.

Changes:

  • Removed the explicit .cab FileExtensionSignInfo from eng/Signing.props to avoid colliding with Arcade’s default .cab registration.
  • Kept the existing ReconnectModal.razor.js signing entry intact.

@rmarinho
rmarinho temporarily deployed to copilot-pat-pool July 30, 2026 14:42 — with GitHub Actions Inactive
@rmarinho
rmarinho temporarily deployed to copilot-pat-pool July 30, 2026 14:43 — with GitHub Actions Inactive
@rmarinho
rmarinho temporarily deployed to copilot-pat-pool July 30, 2026 14:43 — with GitHub Actions Inactive
@kubaflo
kubaflo merged commit 62b927c into main Jul 30, 2026
12 of 21 checks passed
@kubaflo
kubaflo deleted the rmarinho-fix-duplicate-cab-signing-main branch July 30, 2026 15:01
@github-actions github-actions Bot added this to the .NET 10 SR10 milestone Jul 30, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 30, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — dd86e192 Deployed Jul 30, 2026 by rmarinho via conclusion #1044
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants