Skip to content

Commit

Permalink
Exclude GuidAttribute from WinMD. (#1855)
Browse files Browse the repository at this point in the history
Co-authored-by: Manodasan Wignarajah <[email protected]>
  • Loading branch information
dongle-the-gadget and manodasanW authored Nov 9, 2024
1 parent 2563a1f commit 93482af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Authoring/WinRT.SourceGenerator/WinRTTypeWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1696,6 +1696,11 @@ private void AddCustomAttributes(IEnumerable<AttributeData> attributes, EntityHa
continue;
}

if (attributeType.ToString() == "System.Runtime.InteropServices.GuidAttribute")
{
continue;
}

// Skip the [GeneratedBindableCustomProperty] attribute. It is valid to add this on types in WinRT
// components (if they need to be exposed and implement ICustomPropertyProvider), but the attribute
// should never show up in the .winmd file (it would also cause build errors in the projections).
Expand Down

0 comments on commit 93482af

Please sign in to comment.