CsWinRT icon indicating copy to clipboard operation
CsWinRT copied to clipboard

Enable IsAotCompatible for CsWinRT, fix all AOT warnings

Open Sergio0694 opened this issue 1 year ago • 0 comments

Closes #1433, #1324

This PR includes some changes to finally fix all AOT warnings on CsWinRT:

  • Enable IsAotCompatible on the .NET 8 TFM
  • Treat all AOT warnings as errors (we never want any of these)
  • Add all necessary [RequiresDynamicCode] annotations and suppressions
    • See https://github.com/dotnet/runtime/issues/97273
  • Make ManagedIPropertyValueImpl.UnboxValue AOT-safe and remove undefined behavior

Sergio0694 avatar Jan 23 '24 14:01 Sergio0694