CsWinRT
CsWinRT copied to clipboard
Enable IsAotCompatible for CsWinRT, fix all AOT warnings
Closes #1433, #1324
This PR includes some changes to finally fix all AOT warnings on CsWinRT:
- Enable
IsAotCompatibleon 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.UnboxValueAOT-safe and remove undefined behavior