CsWinRT
CsWinRT copied to clipboard
.winmd file is not copied to \publish folder when publishing with NAOT
Describe the bug
When creating a WinRT component with CsWinRT, publishing with AOT results in the .winmd file not being copied correctly in the \publish folder. It does appear in the \bin\release... folder, but when the build finishes it doesn't flow automatically to \publish as well.
To Reproduce
- Create a simile WinRT component (eg. like in #1369)
- Set
<PublishAot>totrue dotnet publish -r win-x64
Expected behavior
The .winmd file should show up in the \publish folder.
Version Info
- net8.0-windows10.0.22621.0
- CsWinRT 2.0.4