CsWinRT
CsWinRT copied to clipboard
C# language projection for the Windows Runtime
### Description I'm using C#/WinRT on a type where the IDL looks something like this: ``` interface IDataSource : IInspectable { [propget] HRESULT MyProperty([out, retval] IItem** value); } interface IDataSink...
### Summary Right now, public async methods must return `IAsnycAction`, `IAsnycActionWithProgress`, `IAsnycOperation`, or `IAsnycOperationWithProgress`. Instead, developers should be allowed to return `Task` and `Task` and have a source generator create...
### Summary Currently, CsWinRT assumes that all public classes and members are to be projected. I would like a way to mark types or members that are public to not...
Bug: The WMC1510 warning message unexpectedly appears in the control template pulled by generic.xaml
### Description The ```WMC1510``` warning message unexpectedly appears in the control template pulled by ```generic.xaml``` ##### -------------------------------------- ```WMC1510``` 警告信息意外出现在 ```generic.xaml``` 拉取的控件模板中 ### Steps To Reproduce When the ```DefaultTeachingTipStyle``` (TeachingTip) control...
Why doesn't the code generated by UWP's App.xaml contain the LoadComponent method ##### ------------------------------------ 为什么 ```UWP``` 的 ```App.xaml``` 生成的代码没有包含 ```LoadComponent``` 方法 ------------------------------------  如图片所示,```WinUI 3```(左侧)的 ```App.xaml``` 生成的代码 ```WinUIApp.g.i.cs``` 包含 ```LoadComponent```...
### Describe the bug AppWindow.Presenter is not recognized as or casted to OverlappedPresenter when changing the framework from Net 8 to Net 9 with PublishAot=true ### Steps to reproduce the...
### Description This works for non-AoT. In AoT projects, calling Windows.Gaming.Input.RawGameController.GetCurrentReading is throwing an exception, Cannot handle array marshalling for non-blittable type: 'System.Boolean'. The generated code appears to be: ```...
### Description Calling `WebAuthenticationCoreManagerInterop.RequestTokenForWindowAsync()` results in the following error message if AOT is enabled: ``Cannot retrieve a helper type for generic public type 'Windows.Foundation.IAsyncOperation`1[Windows.Security.Authentication.Web.Core.WebTokenRequestResult]'`` ### Steps To Reproduce 1. Call...
I am migrating a MFC C++ app to C#. I need to migrate several C++ components. I follow https://github.com/MichalStrehovsky/CppPublishAotReference to enable AOT. It works well for the first component. If...
### Summary Right now, the WinRT AOT source generator runs in auto mode for WinAppSDK apps. In a future WinAppSDK release, we should look at making it running as a...