CsWinRT
CsWinRT copied to clipboard
C# language projection for the Windows Runtime
### Description Looking to use Microsoft Fakes for unit testing, but I can't get it to build. Need to peel the onion to make Fakes usable. [Isolate your app with...
### Description Binding this with PublishAoT causes a runtime crash: ```cs { get { var groups = (from item in Samples orderby item.Category group item by item.Category into g select...
### Description It seems object initializer expressions throw off the generator, which misses types being assigned to properties. ### Steps To Reproduce Something like this: ```csharp class A { public...
See https://github.com/dotnet/runtime/blob/main/docs/design/specs/Memory-model.md#cross-thread-access-to-local-variables. This PR fixes accessing the callback state (which is a managed object) from the native callback invoked on the target thread.
### Description This is related to https://github.com/microsoft/microsoft-ui-xaml/discussions/9983#discussioncomment-10708446 When publishing a UWP project using the preview .net 9 support with AOT, I noticed a crash when an appservice from a win32...
Fixes #1722. Fixes #1851. This PR includes two changes: - Modifying the default COM wrappers so that the vtables generated by the COM Wrappers generators are included. - Changing how...
### Summary Hope to provide a attribute that connects the COM source generation and CSWINRT generation interfaces ##### ------------------------------------ 希望能提供一个连接 COM 源生成和 CSWINRT 生成接口的属性 ------------------------------------ ### Rationale There are some...
### Summary One of the biggest gaps between using IDL to generate a WinMD and using CsWinRT is that with IDL proxy/stub marshaling can be used instead of metadata based...
Bug: MarshalInspectable.CreateMarshaler exhibits different behaviors and results in UWP and WinUI 3
### Description MarshalInspectable.CreateMarshaler exhibits different behaviors and results in UWP and WinUI 3 ##### ------------------------------------------ MarshalInspectable.CreateMarshaler 在 UWP 和 WinUI 3 中表现出不同的行为和结果 ------------------------------------ ### Steps To Reproduce 1. Create WinUI...
### Description On [Windows.System.User.GetDefault method](https://learn.microsoft.com/uwp/api/windows.system.user.getdefault) it's stated that this is supported on `WinRT Build 20348, Build 22000, Build 22621, Build 26100` only. This is represented in the Windows.winmd file as...