CsWinRT icon indicating copy to clipboard operation
CsWinRT copied to clipboard

Type Arguments in Attributes Are Always System.Type in the WinMD

Open shmuelie opened this issue 1 year ago • 0 comments

Describe the bug When authoring WinRT Components, CsWinRT will replace the type set in attributes with System.Type in the generated WinMD.

To Reproduce

  1. Author a WinRT Component that has attributes that take a type parameter, like ExclusiveTo or ContractVersion.
  2. See that generated WinMD sets the type to System.Type, not the type set in C#.

Expected behavior That the attribute have the type set in C#

Version Info CsWinRT: 2.0.7 .NET SDK: 8.0.204 Windows SDK: 10.0.22621.0

shmuelie avatar Apr 12 '24 16:04 shmuelie