Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shmuelie opened this issue Apr 12, 2024 · 0 comments
Open

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

shmuelie opened this issue Apr 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@shmuelie
Copy link

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 shmuelie added the bug Something isn't working label Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant