Skip to content

Add SupportedOSPlatform attributes and make CAB/JAR/MSU cross-platform - #16661

Merged
ViktorHofer merged 1 commit into
mainfrom
fix-signcheck-platform-attributes
Apr 1, 2026
Merged

ViktorHofer merged 1 commit into
mainfrom
fix-signcheck-platform-attributes

Conversation

@ViktorHofer

Copy link
Copy Markdown
Member

Summary

Follow-up to #16658. Addresses mmitche's review feedback and improves cross-platform support.

SupportedOSPlatform attributes

Add [SupportedOSPlatform("windows")] to the Windows-only types:

  • OleStorageSecurityInfoProvider (OLE COM interop)
  • MsiVerifier (WiX Windows Installer APIs)
  • MspVerifier (OLE structured storage)

Cross-platform verifiers

Move CabVerifier, JarVerifier, and MsuVerifier out of the IsWindows() registration block — their signature verification is pure managed code.

MsuVerifier recursive content extraction (WiX CabInfo) is guarded with OperatingSystem.IsWindows() internally.

README updates

Updated platform docs for .cab, .jar, and .msu file types.

- Add [SupportedOSPlatform("windows")] to OleStorageSecurityInfoProvider,
  MsiVerifier, and MspVerifier (Windows-only OLE/WiX dependencies).
- Move CabVerifier, JarVerifier, and MsuVerifier out of IsWindows() block
  since their signature verification is cross-platform.
- Guard MsuVerifier recursive extraction with OperatingSystem.IsWindows()
  (WiX CabInfo dependency).
- Update README platform docs for .cab, .jar, .msu.

Co-authored-by: Copilot <[email protected]>
@ViktorHofer
ViktorHofer enabled auto-merge (squash) April 1, 2026 14:25
@ViktorHofer
ViktorHofer merged commit 09a5917 into main Apr 1, 2026
8 of 9 checks passed
@ViktorHofer
ViktorHofer deleted the fix-signcheck-platform-attributes branch April 1, 2026 15:41
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.

2 participants