CsWinRT icon indicating copy to clipboard operation
CsWinRT copied to clipboard

C# language projection for the Windows Runtime

Results 340 CsWinRT issues
Sort by recently updated
recently updated
newest added

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...

documentation

This PR adds docs explaining in detail all codegen to handle generic collection interfaces in CsWinRT 3.0.

documentation
AOT

### Description When using a grouped `CollectionViewSource` and Native AOT, the items of a ListView aren't shown - only the grouping headers ![Image](https://github.com/user-attachments/assets/649169ef-47ab-4e8b-8f1d-ae0d27fa8777) ### 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...

breaking change
trimming
AOT

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.

tooling
trimming
AOT

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...