CsWinRT icon indicating copy to clipboard operation
CsWinRT copied to clipboard

Windows.Foundation.Metadata.OverloadAttribute generated even when it is already manually specified.

Open shmuelie opened this issue 1 year ago • 0 comments

Describe the bug When authoring WinRT Components, CsWinRT will automatically generate the Overload attribute for you. If I add my own Overload attribute, I expect CsWinRT to not generate one anymore but it still does.

To Reproduce

  1. Author a WinRT Component with overloaded methods.
  2. Give one of the overloads the Overload attribute with a custom name.
  3. See that the method will have two Overload attributes.

Expected behavior That the method only has the Overload attribute I added.

Version Info

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

shmuelie avatar Apr 10 '24 20:04 shmuelie