Skip to content

Exclude System GuidAttribute from WinMD.#1855

Merged
manodasanW merged 2 commits into
microsoft:masterfrom
dongle-the-gadget:guid-fix
Nov 9, 2024
Merged

Exclude System GuidAttribute from WinMD.#1855
manodasanW merged 2 commits into
microsoft:masterfrom
dongle-the-gadget:guid-fix

Conversation

@dongle-the-gadget
Copy link
Copy Markdown
Contributor

Fixes #1852.

Though we probably should be differentiating WinRT attributes and exclude non-WinRT attributes directly rather than hardcoding specific names like this.

@hez2010
Copy link
Copy Markdown
Contributor

hez2010 commented Oct 29, 2024

I think we should map System.Runtime.InteropServices.GuidAttribute to Windows.Foundation.Metadata.GuidAttribute instead of dropping it.

@dongle-the-gadget
Copy link
Copy Markdown
Contributor Author

We already did in another PR, however that one didn't strip away the System GuidAttribute from the WinMD, causing us to generate an invalid WinMD.

@manodasanW
Copy link
Copy Markdown
Member

CI passed, thanks for this fix.

@manodasanW manodasanW merged commit 93482af into microsoft:master Nov 9, 2024
@dongle-the-gadget dongle-the-gadget deleted the guid-fix branch November 9, 2024 04:27
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.

Bug: Usage of System.Runtime.InteropServices.GuidAttribute in WinMD

3 participants