CsWinRT
CsWinRT copied to clipboard
C# language projection for the Windows Runtime
This pull request introduces a detailed specification for the public API of the dynamically generated `WinRT.Interop.dll` assembly. It documents the interop .dll's purpose, name mangling scheme, and provides examples and...
This PR adds docs explaining in detail all codegen to handle generic collection interfaces in CsWinRT 3.0.
### Description When using a grouped `CollectionViewSource` and Native AOT, the items of a ListView aren't shown - only the grouping headers  ### Steps To Reproduce MainWindow.xaml ``` ```...
This PR adds `NoInlining` to all marshalling stubs. This matches .NET Native and should reduce binary size.
This type is super cursed and causes a ton of code to be rooted. It's also not really needed anymore on Native AOT. This PR makes its static constructor throw...
Closes #1983 Would also close https://github.com/microsoft/microsoft-ui-xaml/issues/10447
Title, plus also adding a bunch of unit tests for switch statements and expressions.
It is possible to have a CsWinRT component project reference another CsWinRT component project and for one to define interfaces while the other implements them. We were previously not treating...
### Summary Projection should generate a Guid member on runtimeclasses annotated with `[ComOutOfProcClsId(...)]` with its value 1. SDK annotates the runtimeclass with an attribute, and 2. cswinrt should read from...
### Description This issue was discovered by developers developing Windows Apps with **AOT enabled**: https://github.com/microsoft/WindowsAppSDK/issues/4743#issuecomment-2909004888 The error 'Specified cast is not valid.' was thrown when developer build App with below...