CsWinRT icon indicating copy to clipboard operation
CsWinRT copied to clipboard

.winmd file is not copied to \publish folder when publishing with NAOT

Open Sergio0694 opened this issue 2 years ago • 0 comments

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

  1. Create a simile WinRT component (eg. like in #1369)
  2. Set <PublishAot> to true
  3. 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

Sergio0694 avatar Oct 23 '23 20:10 Sergio0694