Skip to content

Commit 93482af

Browse files
Exclude GuidAttribute from WinMD. (#1855)
Co-authored-by: Manodasan Wignarajah <[email protected]>
1 parent 2563a1f commit 93482af

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Authoring/WinRT.SourceGenerator/WinRTTypeWriter.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1696,6 +1696,11 @@ private void AddCustomAttributes(IEnumerable<AttributeData> attributes, EntityHa
16961696
continue;
16971697
}
16981698

1699+
if (attributeType.ToString() == "System.Runtime.InteropServices.GuidAttribute")
1700+
{
1701+
continue;
1702+
}
1703+
16991704
// Skip the [GeneratedBindableCustomProperty] attribute. It is valid to add this on types in WinRT
17001705
// components (if they need to be exposed and implement ICustomPropertyProvider), but the attribute
17011706
// should never show up in the .winmd file (it would also cause build errors in the projections).

0 commit comments

Comments
 (0)